diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-08-31 01:10:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-08-31 01:10:02 +0000 |
commit | a009d94459a8c8e126dadc8ee335b5833556dac7 (patch) | |
tree | f582cdcd1a13e5a920f2adfd668d153228ebf2cf /cpukit/libnetworking/nfs/bootp_subr.c | |
parent | 2006-08-30 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-a009d94459a8c8e126dadc8ee335b5833556dac7.tar.bz2 |
2006-08-30 Joel Sherrill <joel@OARcorp.com>
* ftpd/ftpd.c, libcsupport/include/sys/ioccom.h,
libcsupport/src/ioctl.c, libnetworking/kern/uipc_mbuf.c,
libnetworking/libc/inet_addr.c, libnetworking/net/ethernet.h,
libnetworking/net/if.c, libnetworking/net/if_ethersubr.c,
libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h,
libnetworking/net/if_var.h, libnetworking/net/ppp_tty.c,
libnetworking/netinet/in_cksum.c, libnetworking/nfs/bootp_subr.c,
libnetworking/rtems/rtems_bsdnet_internal.h,
libnetworking/sys/mbuf.h, pppd/md4.c, pppd/pppd.h: Remove warnings
due to improper use of int which shows up on 16 bit targets. Added
ioctl_command_t since IOCTL command argument does not reliably fit
into 16 bits.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/nfs/bootp_subr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/libnetworking/nfs/bootp_subr.c b/cpukit/libnetworking/nfs/bootp_subr.c index 3ad2a38ac1..1c3a7b74ed 100644 --- a/cpukit/libnetworking/nfs/bootp_subr.c +++ b/cpukit/libnetworking/nfs/bootp_subr.c @@ -71,6 +71,7 @@ #include <rtems/mkrootfs.h> #include <rtems/rtems_bsdnet.h> #include <rtems/bsdnet/servers.h> +#include <inttypes.h> #define BOOTP_MIN_LEN 300 /* Minimum size of bootp udp packet */ @@ -706,12 +707,12 @@ substr(char *a, char *b) static void printip(char *prefix,struct in_addr addr) { - unsigned int ip; + uint32_t ip; ip = ntohl(addr.s_addr); - printf("%s is %d.%d.%d.%d\n",prefix, - ip >> 24, (ip >> 16) & 255 ,(ip >> 8) & 255 ,ip & 255 ); + printf("%s is %" PRId32" .%" PRId32" .%" PRId32" .%" PRId32" \n",prefix, + ip >> 24, (ip >> 16) & 0xff ,(ip >> 8) & 0xff ,ip & 0xff ); } static int dhcpOptionOverload = 0; |