From: Ted Lemon Date: Tue, 4 Jun 1996 19:04:16 +0000 (+0000) Subject: Delete unused automatic variables X-Git-Tag: BETA_4_3~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eebea4480628d17843df50ef546409e57368166c;p=thirdparty%2Fdhcp.git Delete unused automatic variables --- diff --git a/client/dhclient.c b/client/dhclient.c index c95dbd4a8..e2761147a 100644 --- a/client/dhclient.c +++ b/client/dhclient.c @@ -72,17 +72,8 @@ int main (argc, argv, envp) char **argv, **envp; { struct in_addr addr; - int port = 0; int i; - struct sockaddr_in name; - u_int32_t *addrlist = (u_int32_t *)0; - int addrcount = 0; - struct tree *addrtree = (struct tree *)0; struct servent *ent; - int sock; - int pid; - int result; - int flag; struct interface_info *interface; #ifdef SYSLOG_4_2 diff --git a/common/conflex.c b/common/conflex.c index 06c54fc38..ff80a4baa 100644 --- a/common/conflex.c +++ b/common/conflex.c @@ -87,7 +87,6 @@ static int get_token (cfile) FILE *cfile; { int c; - int i; int ttok; #ifdef DEBUG_TOKENS static char tb [2]; diff --git a/conflex.c b/conflex.c index 06c54fc38..ff80a4baa 100644 --- a/conflex.c +++ b/conflex.c @@ -87,7 +87,6 @@ static int get_token (cfile) FILE *cfile; { int c; - int i; int ttok; #ifdef DEBUG_TOKENS static char tb [2]; diff --git a/confpars.c b/confpars.c index 2d0980892..902b70833 100644 --- a/confpars.c +++ b/confpars.c @@ -683,7 +683,6 @@ void parse_hardware_decl (cfile, bc, decl) jbp_decl (bc); struct host_decl *decl; { - char *val; int token; struct hardware hw; @@ -1266,7 +1265,6 @@ TIME parse_date (cfile, bc) FILE *cfile; jbp_decl (bc); { - TIME t; struct tm tm; char *val; int token; diff --git a/dhclient.c b/dhclient.c index c95dbd4a8..e2761147a 100644 --- a/dhclient.c +++ b/dhclient.c @@ -72,17 +72,8 @@ int main (argc, argv, envp) char **argv, **envp; { struct in_addr addr; - int port = 0; int i; - struct sockaddr_in name; - u_int32_t *addrlist = (u_int32_t *)0; - int addrcount = 0; - struct tree *addrtree = (struct tree *)0; struct servent *ent; - int sock; - int pid; - int result; - int flag; struct interface_info *interface; #ifdef SYSLOG_4_2 diff --git a/dhcp.c b/dhcp.c index 036f5e9f9..a2ffe775c 100644 --- a/dhcp.c +++ b/dhcp.c @@ -149,7 +149,6 @@ void dhcprequest (packet) struct lease *lease; struct iaddr cip; struct subnet *subnet; - struct lease *ip_lease; if (packet -> options [DHO_DHCP_REQUESTED_ADDRESS].len) { cip.len = 4; diff --git a/server/confpars.c b/server/confpars.c index 2d0980892..902b70833 100644 --- a/server/confpars.c +++ b/server/confpars.c @@ -683,7 +683,6 @@ void parse_hardware_decl (cfile, bc, decl) jbp_decl (bc); struct host_decl *decl; { - char *val; int token; struct hardware hw; @@ -1266,7 +1265,6 @@ TIME parse_date (cfile, bc) FILE *cfile; jbp_decl (bc); { - TIME t; struct tm tm; char *val; int token; diff --git a/server/dhcp.c b/server/dhcp.c index 036f5e9f9..a2ffe775c 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -149,7 +149,6 @@ void dhcprequest (packet) struct lease *lease; struct iaddr cip; struct subnet *subnet; - struct lease *ip_lease; if (packet -> options [DHO_DHCP_REQUESTED_ADDRESS].len) { cip.len = 4;