diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-07-11 07:39:23 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-07-11 07:39:23 +0000 |
commit | e9159a03ef2d9f0f3a9873c392d95a908b841569 (patch) | |
tree | 39796b33181ab19f497e5cc9fff9c0d4957ce007 /usr.bin/doas | |
parent | 1be8c8620ab902fc53c6582bca1e1127ad67409a (diff) |
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.bin/doas')
-rw-r--r-- | usr.bin/doas/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/doas/parse.y b/usr.bin/doas/parse.y index fde406bcf5a..dd9466e5f13 100644 --- a/usr.bin/doas/parse.y +++ b/usr.bin/doas/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.26 2017/01/02 01:40:20 tedu Exp $ */ +/* $OpenBSD: parse.y,v 1.27 2018/07/11 07:39:22 krw Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -331,7 +331,7 @@ eow: } } if ((str = strdup(buf)) == NULL) - err(1, "strdup"); + err(1, "%s", __func__); yylval.str = str; return TSTRING; |