From 60b6a5a4d8a3075ef5d0bc7025859f704ef90bb0 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Sun, 14 Aug 2011 22:46:09 -0400 Subject: [PATCH] Minor variable cleanup to fix compiler warnings Minor cleanup to fix compiler warnings about unused variables. --- server/access.c | 2 -- server/pcap_capture.c | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/access.c b/server/access.c index dc4dd81f..13fbe230 100644 --- a/server/access.c +++ b/server/access.c @@ -361,8 +361,6 @@ expand_acc_string_list(acc_string_list_t **stlist, char *stlist_str) char *ndx, *start; char buf[1024]; - int stlen = strlen(stlist_str); - start = stlist_str; for(ndx = start; *ndx; ndx++) diff --git a/server/pcap_capture.c b/server/pcap_capture.c index 6de35624..30c6d45c 100644 --- a/server/pcap_capture.c +++ b/server/pcap_capture.c @@ -60,7 +60,10 @@ pcap_capture(fko_srv_options_t *opts) int promisc = 0; int status; pid_t child_pid; + +#if FIREWALL_IPFW time_t now; +#endif /* Set promiscuous mode if ENABLE_PCAP_PROMISC is set to 'Y'. */