diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-29 22:11:51 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-29 22:11:51 +0000 |
commit | d8dbdc02cfbb73fbab709dd092a0f0937456b4bb (patch) | |
tree | 001cefb31b81cec83af953e71c164874837130cb /cpukit/libnetworking/machine | |
parent | 2004-03-29 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-d8dbdc02cfbb73fbab709dd092a0f0937456b4bb.tar.bz2 |
2004-03-29 Ralf Corsepius <ralf_corsepius@rtems.org>
* libnetworking/lib/ftpfs.c, libnetworking/lib/rtems_bsdnet_ntp.c,
libnetworking/lib/tftpDriver.c, libnetworking/machine/endian.h,
libnetworking/net/if_ppp.c, libnetworking/rtems/rtems_bsdnet.h,
libnetworking/rtems/rtems_bsdnet_internal.h,
libnetworking/rtems/rtems_glue.c,
libnetworking/rtems/rtems_syscall.c: Convert to using c99 fixed size
types.
Diffstat (limited to 'cpukit/libnetworking/machine')
-rw-r--r-- | cpukit/libnetworking/machine/endian.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libnetworking/machine/endian.h b/cpukit/libnetworking/machine/endian.h index 0b12bbf05d..34187dc93e 100644 --- a/cpukit/libnetworking/machine/endian.h +++ b/cpukit/libnetworking/machine/endian.h @@ -45,10 +45,10 @@ * A little more complicated on little endian CPUs */ -#define ntohl(_x) ((long) CPU_swap_u32((unsigned32)_x)) -#define ntohs(_x) ((short) CPU_swap_u16((unsigned16)_x)) -#define htonl(_x) ((long) CPU_swap_u32((unsigned32)_x)) -#define htons(_x) ((short) CPU_swap_u16((unsigned16)_x)) +#define ntohl(_x) ((long) CPU_swap_u32((uint32_t )_x)) +#define ntohs(_x) ((short) CPU_swap_u16((uint16_t )_x)) +#define htonl(_x) ((long) CPU_swap_u32((uint32_t )_x)) +#define htons(_x) ((short) CPU_swap_u16((uint16_t )_x)) #define NTOHS(x) (x) = ntohs(x) #define HTONS(x) (x) = htons(x) |