From: krw Date: Wed, 11 Jul 2018 07:39:22 +0000 (+0000) Subject: Do for most running out of memory err() what was done for most running out of memory... X-Git-Tag: v6.6~32 X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=commitdiff_plain;h=39c5d01f30a99d94dc89411a8e1ab103e2fc3074 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@ --- diff --git a/parse.y b/parse.y index c906d9f..e4a041a 100644 --- 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; }