From f46306945c95adc9a6232ce86f908f2a51a771dd Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 6 May 2005 06:30:51 +0000 Subject: Stage 1 compilation fixes for gcc 4.0 : * more casts signed<->unsigned types * make choose_iso_in_directory()'s return type "void" * change order of .h files in network.c so strndup is included correctly * newt: initialize some variables properly * compile pcmcia and ppp with -Wno-deprecated-declarations, since they use deprecated types such as u_int32_t --- mdk-stage1/dhcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mdk-stage1/dhcp.c') diff --git a/mdk-stage1/dhcp.c b/mdk-stage1/dhcp.c index b0c913e41..f5de6543e 100644 --- a/mdk-stage1/dhcp.c +++ b/mdk-stage1/dhcp.c @@ -220,7 +220,7 @@ static void parse_reply(struct bootp_request * breq, struct interface_info * int memcpy(&intf->ip, &breq->yiaddr, 4); - chptr = breq->vendor; + chptr = (unsigned char *) breq->vendor; chptr += 4; while (*chptr != 0xFF && (void *) chptr < (void *) breq->vendor + DHCP_VENDOR_LENGTH) { char tmp_str[500]; @@ -307,7 +307,7 @@ static int get_vendor_code(struct bootp_request * bresp, unsigned char option, v unsigned char * chptr; unsigned int length, theOption; - chptr = bresp->vendor + 4; + chptr = (unsigned char*) bresp->vendor + 4; while (*chptr != 0xFF && *chptr != option) { theOption = *chptr++; if (!theOption) @@ -483,7 +483,7 @@ static void add_vendor_code(struct bootp_request * breq, unsigned char option, u unsigned char * chptr; int theOption, theLength; - chptr = breq->vendor; + chptr = (unsigned char*) breq->vendor; chptr += 4; while (*chptr != 0xFF && *chptr != option) { theOption = *chptr++; -- cgit v1.2.1