forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user