summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ifstated
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2018-07-08 17:15:07 +0000
committerkrw <krw@openbsd.org>2018-07-08 17:15:07 +0000
commit3c12ada049ec8174546d7ebd54606e5a13c3e487 (patch)
tree624e17f8db98eb3aad46e23c1fe06b1fdd8649a2 /usr.sbin/ifstated
parentdocument what happens when the @define-tag defining package gets removed (diff)
downloadwireguard-openbsd-3c12ada049ec8174546d7ebd54606e5a13c3e487.tar.xz
wireguard-openbsd-3c12ada049ec8174546d7ebd54606e5a13c3e487.zip
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/ifstated')
-rw-r--r--usr.sbin/ifstated/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ifstated/parse.y b/usr.sbin/ifstated/parse.y
index 12adbfa66f6..00047cc50fe 100644
--- a/usr.sbin/ifstated/parse.y
+++ b/usr.sbin/ifstated/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.49 2018/04/26 14:12:19 krw Exp $ */
+/* $OpenBSD: parse.y,v 1.50 2018/07/08 17:15:07 krw Exp $ */
/*
* Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org>
@@ -682,7 +682,7 @@ pushfile(const char *name, int secret)
struct file *nfile;
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
- warn("malloc");
+ warn("calloc");
return (NULL);
}
if ((nfile->name = strdup(name)) == NULL) {