Skip to contentSkip to conversation

nios2: use long for ssize_t

PATCH New Thomas Chou 2 participants 2 messages Dec 27, 2010 – Jan 18, 2011 NIOS2 architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nios2: use long for ssize_t

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)

---
 arch/nios2/include/asm/posix_types.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/nios2/include/asm/posix_types.h +1 -1
index c2deea6..6733640 100644
@@ -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;
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 nios2: use long for ssize_t

Added to: git://git.denx.de/u-boot-nios.git 'next'

Thank you,
--Scott

Quoted 23 lines · Thomas Chou

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)

---
 arch/nios2/include/asm/posix_types.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/nios2/include/asm/posix_types.h +1 -1
index c2deea6..6733640 100644
@@ -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;