[AVR32] ssize_t should be long, not int
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 9 Feb 2007 11:01:02 +0000 (12:01 +0100)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 9 Feb 2007 14:01:59 +0000 (15:01 +0100)
Since size_t is defined as unsigned long, ssize_t ought to be long
and not int. It could have been the other way around, but gcc defines
size_t as unsigned long, so this is correct.

This fixes a couple of printk format warnings.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
include/asm-avr32/posix_types.h

index 2831b039b349c7428870657cb63c28fee052f2a8..9e255b9996393aa503290b865534198ec32e93ad 100644 (file)
@@ -23,7 +23,7 @@ typedef unsigned short  __kernel_ipc_pid_t;
 typedef unsigned int   __kernel_uid_t;
 typedef unsigned int   __kernel_gid_t;
 typedef unsigned long  __kernel_size_t;
-typedef int             __kernel_ssize_t;
+typedef long           __kernel_ssize_t;
 typedef int             __kernel_ptrdiff_t;
 typedef long            __kernel_time_t;
 typedef long            __kernel_suseconds_t;