This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: return signed result of syscall for cris


Well, here's the patch in unified format, as requested.

	* typecast __sys_res to signed long to make typecasts to
	  long long int work

Index: sysdep.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/cris/sysdep.h,v
retrieving revision 1.4
diff -u -r1.4 sysdep.h
--- sysdep.h	12 Jun 2003 16:18:11 -0000	1.4
+++ sysdep.h	13 Jun 2003 15:42:58 -0000
@@ -170,7 +170,7 @@
 	 __set_errno (- __sys_res);		\
 	 __sys_res = (unsigned long) -1;	\
        }					\
-     __sys_res;					\
+     (long) __sys_res;					\
    })
 
 #define LOAD_ARGS_c_0()

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]