]> git.armaanb.net Git - opendoas.git/commitdiff
adjust yyerror() to precede with "progname: " the error message string
authorgsoares <gsoares@openbsd.org>
Wed, 30 Jan 2019 19:49:19 +0000 (20:49 +0100)
committerDuncaen <mail@duncano.de>
Wed, 30 Jan 2019 19:50:23 +0000 (20:50 +0100)
OK tedu@ phessler@

parse.y

diff --git a/parse.y b/parse.y
index 475c0d530d9e5ffb9d153645d54d87ab64f0128c..c906d9f21f9fda0d917a97aed83cb95fa5b2c1bb 100644 (file)
--- a/parse.y
+++ b/parse.y
@@ -194,6 +194,7 @@ yyerror(const char *fmt, ...)
 {
        va_list va;
 
+       fprintf(stderr, "doas: ");
        va_start(va, fmt);
        vfprintf(stderr, fmt, va);
        va_end(va);