summaryrefslogtreecommitdiff
path: root/sbin/dhclient/options.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-06-15 17:06:18 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-06-15 17:06:18 +0000
commit12ac96d30566ae2d7ece10492d9e55d5f2c84508 (patch)
tree07415f1557da958da6f9794fb5b434aeb1a25cb5 /sbin/dhclient/options.c
parent4b463c1d4b8ffc27eba548b0a08303b170c556d9 (diff)
Nuke unused parameter 'client_addr' from the 'handlers', i.e.
dhcpoffer(), dhcpack(), dhcpnak().
Diffstat (limited to 'sbin/dhclient/options.c')
-rw-r--r--sbin/dhclient/options.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/dhclient/options.c b/sbin/dhclient/options.c
index 80fbc83328e..612632f02fc 100644
--- a/sbin/dhclient/options.c
+++ b/sbin/dhclient/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.91 2017/06/14 16:09:42 krw Exp $ */
+/* $OpenBSD: options.c,v 1.92 2017/06/15 17:06:17 krw Exp $ */
/* DHCP options parsing and reassembly. */
@@ -636,8 +636,7 @@ do_packet(struct interface_info *ifi, unsigned int from_port,
struct dhcp_packet *packet = &ifi->recv_packet;
struct option_data options[256];
struct reject_elem *ap;
- void (*handler)(struct interface_info *, struct in_addr,
- struct option_data *, char *);
+ void (*handler)(struct interface_info *, struct option_data *, char *);
char *type, *info;
int i, rslt, options_valid = 1;
@@ -753,7 +752,7 @@ do_packet(struct interface_info *ifi, unsigned int from_port,
fatalx("no memory for info string");
if (handler)
- (*handler)(ifi, from, options, info);
+ (*handler)(ifi, options, info);
free(info);