opendoas

my fork of doas with custom prompt
git clone git://git.kocotian.pl/opendoas.git
Log | Files | Refs | README | LICENSE

commit 39c5d01f30a99d94dc89411a8e1ab103e2fc3074
parent ed7fb0a2f40f2f51304f676963a459f2986f5ea0
Author: krw <krw>
Date:   Wed, 11 Jul 2018 07:39:22 +0000

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:
Mparse.y | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parse.y b/parse.y @@ -331,7 +331,7 @@ eow: } } if ((str = strdup(buf)) == NULL) - err(1, "strdup"); + err(1, "%s", __func__); yylval.str = str; return TSTRING; }