summaryrefslogtreecommitdiff
path: root/usr.sbin/npppd
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2018-07-08 17:15:08 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2018-07-08 17:15:08 +0000
commitd464459430dfe32556dda698f3f70370957dd913 (patch)
tree033b62bab4275329edca02f08ec39149953e3763 /usr.sbin/npppd
parentfc6ca168ed4b376c9c7f2c398d10ff6c1497be54 (diff)
Be consistent in warn() and log_warn() usage when
running out of memory. Next step, be correct *and* consistent. ok dennis@ tb@ benno@ schwarze@
Diffstat (limited to 'usr.sbin/npppd')
-rw-r--r--usr.sbin/npppd/npppd/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/npppd/npppd/parse.y b/usr.sbin/npppd/npppd/parse.y
index 2872c71f3b0..1c7042f3cae 100644
--- a/usr.sbin/npppd/npppd/parse.y
+++ b/usr.sbin/npppd/npppd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.19 2017/08/12 11:20:34 goda Exp $ */
+/* $OpenBSD: parse.y,v 1.20 2018/07/08 17:15:07 krw Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1329,11 +1329,11 @@ pushfile(const char *name)
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- log_warn("malloc");
+ log_warn("calloc");
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {
- log_warn("malloc");
+ log_warn("strdup");
free(nfile);
return (NULL);
}