diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-04-12 22:17:13 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-04-12 22:17:13 +0000 |
commit | f6b2f1c7437fe0f29f17858eeda660cebe7a4722 (patch) | |
tree | d4ffa743ea96bc9a8f704292618e13a26a9467b8 /mdk-stage1 | |
parent | aa4337b2eea96e677e4e94f9f474620d6a023dc3 (diff) | |
download | drakx-f6b2f1c7437fe0f29f17858eeda660cebe7a4722.tar drakx-f6b2f1c7437fe0f29f17858eeda660cebe7a4722.tar.gz drakx-f6b2f1c7437fe0f29f17858eeda660cebe7a4722.tar.bz2 drakx-f6b2f1c7437fe0f29f17858eeda660cebe7a4722.tar.xz drakx-f6b2f1c7437fe0f29f17858eeda660cebe7a4722.zip |
remove unnecessary redhat history code
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/dhcp.c | 11 |
1 files changed, 4 insertions, 7 deletions
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; } |