diff options
Diffstat (limited to 'net-analyzer/dhcp_probe/files/1.3.0/05-cleanup.patch')
-rw-r--r-- | net-analyzer/dhcp_probe/files/1.3.0/05-cleanup.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net-analyzer/dhcp_probe/files/1.3.0/05-cleanup.patch b/net-analyzer/dhcp_probe/files/1.3.0/05-cleanup.patch new file mode 100644 index 000000000000..4151b461bbfd --- /dev/null +++ b/net-analyzer/dhcp_probe/files/1.3.0/05-cleanup.patch @@ -0,0 +1,29 @@ +--- dhcp_probe-1.3.0/src/dhcp_probe.c.orig 2009-03-09 21:17:47.000000000 +0100 ++++ dhcp_probe-1.3.0/src/dhcp_probe.c 2009-11-19 18:09:26.000000000 +0100 +@@ -84,7 +84,6 @@ + struct sigaction sa; + FILE *pid_fp; + char *cwd = CWD; +- int i; + + int write_packet_len; + int bytes_written; +@@ -98,9 +97,6 @@ + int linktype; + char pcap_errbuf[PCAP_ERRBUF_SIZE], pcap_errbuf2[PCAP_ERRBUF_SIZE]; + +- /* for libnet */ +- char libnet_errbuf[LIBNET_ERRBUF_SIZE]; +- + /* get progname = last component of argv[0] */ + prog = strrchr(argv[0], '/'); + if (prog) +@@ -987,8 +983,6 @@ + Must not be called until after initial configuration is complete. + */ + +- int i; +- + if (! read_configfile(config_file)) { + my_exit(1, 1, 1); + } |