diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-01-22 06:02:53 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-01-22 06:02:53 +0000 |
commit | f218f14d9c8aba4349c7094edf7a74953293eb04 (patch) | |
tree | e74327f109bfd9b840c000777befd8a636de0cda /sbin/dhclient | |
parent | 4fc4c2abf2b47ab55af79fc45d224638c62c10fb (diff) |
Whitespace nit. Better error messages.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 | ||||
-rw-r--r-- | sbin/dhclient/kroute.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index fa7781a69bb..0b591cda8d0 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.213 2013/01/18 08:07:32 jmc Exp $ */ +/* $OpenBSD: dhclient.c,v 1.214 2013/01/22 06:02:52 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -2230,4 +2230,4 @@ priv_write_file(struct imsg_write_file *imsg) fchown(fd, imsg->uid, imsg->gid); close(fd); - } +} diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c index 7b3348f3b7e..47b52503167 100644 --- a/sbin/dhclient/kroute.c +++ b/sbin/dhclient/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.27 2013/01/17 23:41:07 krw Exp $ */ +/* $OpenBSD: kroute.c,v 1.28 2013/01/22 06:02:52 krw Exp $ */ /* * Copyright 2012 Kenneth R Westerback <krw@openbsd.org> @@ -86,14 +86,14 @@ priv_flush_routes_and_arp_cache(struct imsg_flush_routes *imsg) if (sysctl(mib, 7, NULL, &needed, NULL, 0) == -1) { if (imsg->rdomain != 0 && errno == EINVAL) return; - error("could not get routes"); + error("sysctl size of routes: %s", strerror(errno)); } if (needed == 0) return; if ((buf = malloc(needed)) == NULL) - error("malloc"); + error("no memory for sysctl routes"); if (sysctl(mib, 7, buf, &needed, NULL, 0) == -1) error("sysctl retrieval of routes: %s", strerror(errno)); |