From f6b2f1c7437fe0f29f17858eeda660cebe7a4722 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 12 Apr 2001 22:17:13 +0000 Subject: remove unnecessary redhat history code --- mdk-stage1/dhcp.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/dhcp.c b/mdk-stage1/dhcp.c index ab259e7c9..53ff92617 100644 --- a/mdk-stage1/dhcp.c +++ b/mdk-stage1/dhcp.c @@ -257,7 +257,7 @@ static void init_vendor_codes(struct bootp_request * breq) { static char gen_hwaddr[16]; -static int prepare_request(struct bootp_request * breq, int sock, char * device, time_t startTime) +static int prepare_request(struct bootp_request * breq, int sock, char * device) { struct ifreq req; @@ -307,8 +307,7 @@ static int get_vendor_code(struct bootp_request * bresp, unsigned char option, v } -int -currticks (void) +static int currticks(void) { struct timeval tv; long csecs; @@ -328,8 +327,7 @@ currticks (void) #define TICKS_PER_SEC 18 #define MAX_ARP_RETRIES 4 -void -rfc951_sleep (int exp) +static void rfc951_sleep(int exp) { static long seed = 0; long q; @@ -496,7 +494,6 @@ enum return_type perform_dhcp(struct interface_info * intf) struct bootp_request breq, bresp; unsigned char messageType; unsigned int lease; - time_t startTime = time(NULL); short aShort; int num_options; char requested_options[50]; @@ -517,7 +514,7 @@ enum return_type perform_dhcp(struct interface_info * intf) return RETURN_ERROR; } - if (prepare_request(&breq, s, intf->device, startTime) != 0) { + if (prepare_request(&breq, s, intf->device) != 0) { close(s); return RETURN_ERROR; } -- cgit v1.2.1