]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Delete unused automatic variables
authorTed Lemon <source@isc.org>
Tue, 4 Jun 1996 19:04:16 +0000 (19:04 +0000)
committerTed Lemon <source@isc.org>
Tue, 4 Jun 1996 19:04:16 +0000 (19:04 +0000)
client/dhclient.c
common/conflex.c
conflex.c
confpars.c
dhclient.c
dhcp.c
server/confpars.c
server/dhcp.c

index c95dbd4a8aad083f73a6ef1d4adfa35a0764127c..e2761147ae799ac68552e4c503f98c5b64688f6f 100644 (file)
@@ -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
index 06c54fc381af232ae7c00736965ece277dceca80..ff80a4baadfdb079aa2551494047419dbd9ae6f6 100644 (file)
@@ -87,7 +87,6 @@ static int get_token (cfile)
        FILE *cfile;
 {
        int c;
-       int i;
        int ttok;
 #ifdef DEBUG_TOKENS
        static char tb [2];
index 06c54fc381af232ae7c00736965ece277dceca80..ff80a4baadfdb079aa2551494047419dbd9ae6f6 100644 (file)
--- 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];
index 2d098089225fcb5939de8b7b4b3ab6aeebdeae23..902b70833fe4cf117ae15e3d3ae93d89af61eb4c 100644 (file)
@@ -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;
index c95dbd4a8aad083f73a6ef1d4adfa35a0764127c..e2761147ae799ac68552e4c503f98c5b64688f6f 100644 (file)
@@ -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 036f5e9f9f7539c26fab602ae93ea77d0dbc3752..a2ffe775ccaf31dfc46d0d37e3e62b386fe473ce 100644 (file)
--- 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;
index 2d098089225fcb5939de8b7b4b3ab6aeebdeae23..902b70833fe4cf117ae15e3d3ae93d89af61eb4c 100644 (file)
@@ -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;
index 036f5e9f9f7539c26fab602ae93ea77d0dbc3752..a2ffe775ccaf31dfc46d0d37e3e62b386fe473ce 100644 (file)
@@ -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;