summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-04-12 22:17:13 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-04-12 22:17:13 +0000
commitf6b2f1c7437fe0f29f17858eeda660cebe7a4722 (patch)
treed4ffa743ea96bc9a8f704292618e13a26a9467b8
parentaa4337b2eea96e677e4e94f9f474620d6a023dc3 (diff)
downloaddrakx-f6b2f1c7437fe0f29f17858eeda660cebe7a4722.tar
drakx-f6b2f1c7437fe0f29f17858eeda660cebe7a4722.tar.gz
drakx-f6b2f1c7437fe0f29f17858eeda660cebe7a4722.tar.bz2
drakx-f6b2f1c7437fe0f29f17858eeda660cebe7a4722.tar.xz
drakx-f6b2f1c7437fe0f29f17858eeda660cebe7a4722.zip
remove unnecessary redhat history code
-rw-r--r--mdk-stage1/dhcp.c11
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;
}