diff options
author | krw <krw@openbsd.org> | 2018-07-11 07:39:22 +0000 |
---|---|---|
committer | krw <krw@openbsd.org> | 2018-07-11 07:39:22 +0000 |
commit | a062aa9d6a1c6c36ba1886ff476a56da7d9bd5de (patch) | |
tree | 6674982dffd0594a3958b414dbfdadd959c78a5a /usr.sbin/switchd | |
parent | Turn yesterday's optimistic ! in an XXX comment into a more cautious ? (diff) | |
download | wireguard-openbsd-a062aa9d6a1c6c36ba1886ff476a56da7d9bd5de.tar.xz wireguard-openbsd-a062aa9d6a1c6c36ba1886ff476a56da7d9bd5de.zip |
Do for most running out of memory err() what was done for most running
out of memory log_warn(). i.e. ("%s", __func__) instead of manual
function names and redundant verbiage about which wrapper detected the
out of memory condition.
ok henning@
Diffstat (limited to 'usr.sbin/switchd')
-rw-r--r-- | usr.sbin/switchd/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/switchd/parse.y b/usr.sbin/switchd/parse.y index f10899c7d7f..81ab0dafd81 100644 --- a/usr.sbin/switchd/parse.y +++ b/usr.sbin/switchd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.9 2018/07/09 12:05:11 krw Exp $ */ +/* $OpenBSD: parse.y,v 1.10 2018/07/11 07:39:22 krw Exp $ */ /* * Copyright (c) 2007-2016 Reyk Floeter <reyk@openbsd.org> @@ -388,7 +388,7 @@ lungetc(int c) if (file->ungetpos >= file->ungetsize) { void *p = reallocarray(file->ungetbuf, file->ungetsize, 2); if (p == NULL) - err(1, "lungetc"); + err(1, "%s", __func__); file->ungetbuf = p; file->ungetsize *= 2; } |