From 28703015ab71784f40bc97f720ed900e26bd03ca Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 19 Dec 2006 20:32:02 +0000 Subject: u_short, ulong exterminated fdiskXXX: add a bit of sanity (not enough by far) --- networking/udhcp/arpping.c | 6 +++--- networking/udhcp/dhcprelay.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'networking/udhcp') diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c index 9c8b9c562..f78fd3fd8 100644 --- a/networking/udhcp/arpping.c +++ b/networking/udhcp/arpping.c @@ -15,9 +15,9 @@ struct arpMsg { /* Ethernet header */ - u_char h_dest[6]; /* destination ether addr */ - u_char h_source[6]; /* source ether addr */ - u_short h_proto; /* packet type ID field */ + uint8_t h_dest[6]; /* destination ether addr */ + uint8_t h_source[6]; /* source ether addr */ + uint16_t h_proto; /* packet type ID field */ /* ARP packet */ uint16_t htype; /* hardware type (must be ARPHRD_ETHER) */ diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c index 052739400..a3ea327c3 100644 --- a/networking/udhcp/dhcprelay.c +++ b/networking/udhcp/dhcprelay.c @@ -103,7 +103,7 @@ static void xid_del(u_int32_t xid) */ static int get_dhcp_packet_type(struct dhcpMessage *p) { - u_char *op; + uint8_t *op; /* it must be either a BOOTREQUEST or a BOOTREPLY */ if (p->op != BOOTREQUEST && p->op != BOOTREPLY) -- cgit v1.2.3