summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2012-10-31 20:13:34 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2012-10-31 20:13:34 +0000
commit0565a68028beac6835fb3ede6db0081dcb855910 (patch)
tree45cd68bf09571836a572fdae7640d995f1cda5d1
parent86bb504639d4b37cc9a33e8150d393ddc07fee00 (diff)
Delete some leftover debug code and the array it rode in on.
-rw-r--r--sbin/dhclient/dhclient.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index e26bd2ebea8..56a785b552f 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.161 2012/10/31 18:21:03 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.162 2012/10/31 20:13:33 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -168,7 +168,7 @@ routehandler(void)
struct sockaddr *sa;
struct iaddr a;
ssize_t n;
- char *errmsg, buf[64];
+ char *errmsg;
do {
n = read(routefd, &msg, sizeof(msg));
@@ -210,16 +210,12 @@ routehandler(void)
iaddr_adding = defaddr;
break;
}
- snprintf(buf, sizeof(buf), "%s: %s",
- "new address not one we set", piaddr(a));
errmsg = "interface address added";
} else {
if (addr_eq(a, iaddr_deleting)) {
iaddr_deleting = defaddr;
break;
}
- snprintf(buf, sizeof(buf), "%s: %s",
- "new address not one we set", piaddr(a));
errmsg = "interface address deleted";
}
goto die;