summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-02-14 22:46:54 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-02-14 22:46:54 +0000
commite59a9de7dc98d1072138134e7ad04e029ac8d616 (patch)
tree9b4d942a72f91edd2098a1a249dc2cda01b50f6a /sbin/dhclient/dhclient.c
parentdf510596c9e4d14cafde3ebaebd45153e0be0b68 (diff)
fatalx() prepends 'fatal in _progname:'. So eliminate redundant
'; exiting' suffix used by old style logging. Eliminate an extra log message before fatal()'ing out with a summary message.
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r--sbin/dhclient/dhclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 1ebbcb66077..2d08f2f0dde 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.397 2017/02/12 15:53:15 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.398 2017/02/14 22:46:53 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -422,7 +422,7 @@ done:
die:
if (rslt == -1)
fatalx("no memory for errmsg");
- fatalx("%s; exiting", errmsg);
+ fatalx("%s", errmsg);
}
char **saved_argv;
@@ -2259,7 +2259,7 @@ fork_privchld(struct interface_info *ifi, int fd, int fd2)
}
if (quit != INTERNALSIG)
- log_warnx("%s; exiting", strsignal(quit));
+ fatalx("%s", strsignal(quit));
exit(1);
}