summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-07-17 17:54:00 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-07-17 17:54:00 +0000
commit29fd15daf629b74bcd6051a391354832d52cf388 (patch)
tree07bbc1b8aed5b818479f8b028b7923a8339abfbb /sbin/dhclient
parent5531ac88614516462e210f2b596019855f453ea9 (diff)
Nuke unused variables 'deleting' and 'adding'.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/kroute.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c
index 930a19d6024..39dfdfc22c9 100644
--- a/sbin/dhclient/kroute.c
+++ b/sbin/dhclient/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.109 2017/07/14 16:21:03 krw Exp $ */
+/* $OpenBSD: kroute.c,v 1.110 2017/07/17 17:53:59 krw Exp $ */
/*
* Copyright 2012 Kenneth R Westerback <krw@openbsd.org>
@@ -70,9 +70,6 @@ flush_unpriv_ibuf(const char *who)
}
}
-struct in_addr deleting;
-struct in_addr adding;
-
int create_route_label(struct sockaddr_rtlabel *);
int check_route_label(struct sockaddr_rtlabel *);
void populate_rti_info(struct sockaddr **, struct rt_msghdr *);
@@ -575,9 +572,6 @@ delete_address(struct in_addr addr)
struct imsg_delete_address imsg;
int rslt;
- /* Note the address we are deleting for RTM_DELADDR filtering! */
- deleting.s_addr = addr.s_addr;
-
imsg.addr = addr;
rslt = imsg_compose(unpriv_ibuf, IMSG_DELETE_ADDRESS, 0, 0 , -1, &imsg,
@@ -661,9 +655,6 @@ add_address(struct in_addr addr, struct in_addr mask)
struct imsg_add_address imsg;
int rslt;
- /* Note the address we are adding for RTM_NEWADDR filtering! */
- adding = addr;
-
imsg.addr = addr;
imsg.mask = mask;