From a009d94459a8c8e126dadc8ee335b5833556dac7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 31 Aug 2006 01:10:02 +0000 Subject: 2006-08-30 Joel Sherrill * 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. --- cpukit/libnetworking/nfs/bootp_subr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpukit/libnetworking/nfs/bootp_subr.c') 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 #include #include +#include #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; -- cgit v1.2.3