]> git.sur5r.net Git - u-boot/commitdiff
nios2: use long for ssize_t
authorThomas Chou <thomas@wytron.com.tw>
Mon, 27 Dec 2010 02:45:34 +0000 (10:45 +0800)
committerScott McNutt <smcnutt@psyent.com>
Tue, 8 Feb 2011 13:29:53 +0000 (08:29 -0500)
This is consistent with nios2-linux. And resolved the warning,

cmd_nvedit.c: In function `do_env_export':
cmd_nvedit.c:660: warning: size_t format, ssize_t arg (arg 3)

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
arch/nios2/include/asm/posix_types.h

index c2deea6bf7c7d512532598b59fe3b3331707434a..673364099a29a41d3a3a4b4bba9b4fc96da24950 100644 (file)
@@ -17,7 +17,7 @@ typedef unsigned short        __kernel_ipc_pid_t;
 typedef unsigned short __kernel_uid_t;
 typedef unsigned short __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;