summaryrefslogtreecommitdiff
path: root/sbin/dhclient/parse.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-02-12 13:15:51 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-02-12 13:15:51 +0000
commitb1f4da57980d4b1a93867c6163fe2551e76f8bfa (patch)
treec30e4bae372115d51d747f289feff089644f8271 /sbin/dhclient/parse.c
parent8fa79650edfb6d1227033653a68a29d232c58f22 (diff)
Switch from 'legacy' errwarn.c to standard daemon logging functions.
No objections heard. Feedback from millert@ guenther@
Diffstat (limited to 'sbin/dhclient/parse.c')
-rw-r--r--sbin/dhclient/parse.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/dhclient/parse.c b/sbin/dhclient/parse.c
index d71242596e9..8de21943414 100644
--- a/sbin/dhclient/parse.c
+++ b/sbin/dhclient/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.41 2017/02/11 16:12:36 krw Exp $ */
+/* $OpenBSD: parse.c,v 1.42 2017/02/12 13:15:50 krw Exp $ */
/* Common parser code for dhcpd and dhclient. */
@@ -61,6 +61,7 @@
#include "dhcp.h"
#include "dhcpd.h"
#include "dhctoken.h"
+#include "log.h"
/*
* Skip to the semicolon ending the current statement. If we encounter
@@ -144,7 +145,7 @@ parse_string(FILE *cfile)
}
s = strdup(val);
if (!s)
- error("no memory for string %s.", val);
+ fatalx("no memory for string %s.", val);
if (!parse_semi(cfile)) {
free(s);
@@ -413,11 +414,13 @@ parse_date(FILE *cfile)
return (guess);
}
+int warnings_occurred;
+
void
parse_warn(char *msg)
{
static char spaces[81];
- extern char mbuf[1024];
+ static char mbuf[1024];
struct iovec iov[6];
size_t iovcnt;
int i;