Skip to content

Commit

Permalink
MN10300: Fix size_t and ssize_t
Browse files Browse the repository at this point in the history
With the newer compilers, size_t and ssize_t are expected to be (un)signed int
rather than (un)signed long.

Signed-off-by: David Howells <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dhowells authored and torvalds committed Aug 12, 2010
1 parent 3557957 commit 3ad001c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/mn10300/include/asm/posix_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ typedef int __kernel_pid_t;
typedef unsigned short __kernel_ipc_pid_t;
typedef unsigned short __kernel_uid_t;
typedef unsigned short __kernel_gid_t;
#if __GNUC__ == 4
typedef unsigned int __kernel_size_t;
typedef signed int __kernel_ssize_t;
#else
typedef unsigned long __kernel_size_t;
typedef long __kernel_ssize_t;
typedef signed long __kernel_ssize_t;
#endif
typedef int __kernel_ptrdiff_t;
typedef long __kernel_time_t;
typedef long __kernel_suseconds_t;
Expand Down

0 comments on commit 3ad001c

Please sign in to comment.