[parisc-linux-cvs] linux amodra

Alan Modra alan@linuxcare.com.au
Sun, 4 Mar 2001 22:41:02 +1100 (EST)


On Sun, 4 Mar 2001, Alan Modra wrote:

> Use ints rather than longs for 32 bit __kernel_size_t etc.
> Same size, just a different name - Shuts up gcc warnings.

Already posted a few days ago to parisc-linux, but I thought I'd better
stick to the rules.

Index: include/asm-parisc/posix_types.h
===================================================================
RCS file: /home/cvs/parisc/linux/include/asm-parisc/posix_types.h,v
retrieving revision 1.9
diff -u -p -r1.9 posix_types.h
--- posix_types.h	2000/11/30 23:08:03	1.9
+++ posix_types.h	2001/03/04 11:20:25
@@ -19,10 +19,17 @@ typedef int			__kernel_suseconds_t;
 typedef int			__kernel_clock_t;
 typedef int			__kernel_daddr_t;
 /* Note these change from narrow to wide kernels */
+#ifdef __LP64__
 typedef unsigned long		__kernel_size_t;
 typedef long			__kernel_ssize_t;
 typedef long			__kernel_ptrdiff_t;
 typedef long			__kernel_time_t;
+#else
+typedef unsigned int		__kernel_size_t;
+typedef int			__kernel_ssize_t;
+typedef int			__kernel_ptrdiff_t;
+typedef int			__kernel_time_t;
+#endif
 typedef char *			__kernel_caddr_t;
 
 typedef unsigned short		__kernel_uid16_t;