diff options
author | krw <krw@openbsd.org> | 2018-07-08 17:15:07 +0000 |
---|---|---|
committer | krw <krw@openbsd.org> | 2018-07-08 17:15:07 +0000 |
commit | 3c12ada049ec8174546d7ebd54606e5a13c3e487 (patch) | |
tree | 624e17f8db98eb3aad46e23c1fe06b1fdd8649a2 /usr.sbin/ifstated | |
parent | document what happens when the @define-tag defining package gets removed (diff) | |
download | wireguard-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.y | 4 |
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) { |