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/ripd | |
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/ripd')
-rw-r--r-- | usr.sbin/ripd/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ripd/parse.y b/usr.sbin/ripd/parse.y index 5c9ebec2542..ef6e4e95e8b 100644 --- a/usr.sbin/ripd/parse.y +++ b/usr.sbin/ripd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.38 2018/04/26 14:12:19 krw Exp $ */ +/* $OpenBSD: parse.y,v 1.39 2018/07/08 17:15:07 krw Exp $ */ /* * Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> @@ -713,11 +713,11 @@ pushfile(const char *name, int secret) 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); } |