summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1996-06-04 19:12:36 +0000
committerTed Lemon <source@isc.org>1996-06-04 19:12:36 +0000
commit0fe8b9ccd36bef5c855b7dc0a8ff0f67616f930d (patch)
tree1d667e0232501455ee38189743869e6b05e2f532 /common
parent6211627d95d16a7786fe9f693c46879fb265997a (diff)
downloadisc-dhcp-0fe8b9ccd36bef5c855b7dc0a8ff0f67616f930d.tar.gz
Delete unused automatic variables
Diffstat (limited to 'common')
-rw-r--r--common/dispatch.c10
-rw-r--r--common/memory.c4
-rw-r--r--common/options.c6
-rw-r--r--common/socket.c1
4 files changed, 0 insertions, 21 deletions
diff --git a/common/dispatch.c b/common/dispatch.c
index af6ae8c4..bc9ebe11 100644
--- a/common/dispatch.c
+++ b/common/dispatch.c
@@ -49,7 +49,6 @@ static char copyright[] =
#include <sys/ioctl.h>
struct interface_info *interfaces;
-static struct hardware_link *interface_links;
static void got_one PROTO ((struct interface_info *));
@@ -67,8 +66,6 @@ void discover_interfaces ()
int i;
int sock;
int address_count = 0;
- int ifix = 0;
- struct hardware_link *lp;
struct subnet *subnet;
struct shared_network *share;
struct sockaddr_in *foo;
@@ -323,17 +320,10 @@ void dispatch ()
void dispatch ()
{
- struct sockaddr_in from;
- struct hardware hfrom;
- struct iaddr ifrom;
fd_set r, w, x;
struct interface_info *l;
int max = 0;
int count;
- int result;
- static unsigned char packbuf [4095]; /* Packet input buffer.
- Must be as large as largest
- possible MTU. */
FD_ZERO (&r);
FD_ZERO (&w);
diff --git a/common/memory.c b/common/memory.c
index 0c271bd6..5d4883c3 100644
--- a/common/memory.c
+++ b/common/memory.c
@@ -134,7 +134,6 @@ struct host_decl *find_hosts_by_haddr (htype, haddr, hlen)
int hlen;
{
struct host_decl *foo;
- int i;
foo = (struct host_decl *)hash_lookup (host_hw_addr_hash,
haddr, hlen);
@@ -146,7 +145,6 @@ struct host_decl *find_hosts_by_uid (data, len)
int len;
{
struct host_decl *foo;
- int i;
foo = (struct host_decl *)hash_lookup (host_uid_hash, data, len);
return foo;
@@ -645,7 +643,6 @@ void write_leases ()
{
struct lease *l;
struct shared_network *s;
- int i;
for (s = shared_networks; s; s = s -> next) {
for (l = s -> leases; l; l = l -> next) {
@@ -661,7 +658,6 @@ void dump_subnets ()
struct lease *l;
struct shared_network *s;
struct subnet *n;
- int i;
for (s = shared_networks; s; s = s -> next) {
for (n = subnets; n; n = n -> next_sibling) {
diff --git a/common/options.c b/common/options.c
index 354c10a4..fffc27e2 100644
--- a/common/options.c
+++ b/common/options.c
@@ -165,8 +165,6 @@ void cons_options (inpacket, outpacket, options, overload)
int main_buffer_size;
int mainbufix, bufix;
int option_size;
- int result;
- int i;
/* If the client has provided a maximum DHCP message size,
use that. Otherwise, we use the default MTU size (576 bytes). */
@@ -297,10 +295,6 @@ int store_options (buffer, buflen, options, priority_list, priority_len,
{
int bufix = 0;
int option_stored [256];
- int missed = 0;
- int missed_code = 0;
- int missed_length = 0;
- int result;
int i;
int ix;
diff --git a/common/socket.c b/common/socket.c
index bb447527..2ce80452 100644
--- a/common/socket.c
+++ b/common/socket.c
@@ -61,7 +61,6 @@ int if_register_socket (info, interface)
{
struct sockaddr_in name;
int sock;
- struct socklist *tmp;
int flag;
static int once = 0;