From: Todd C. Miller Date: Mon, 27 Sep 2004 16:02:50 +0000 (+0000) Subject: make yyerror()'s argument const X-Git-Tag: SUDO_1_7_0~940 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f735815926604707ac062e37249194360b5aa77;p=sudo make yyerror()'s argument const --- diff --git a/parse.yacc b/parse.yacc index 225da15fe..9349ff71e 100644 --- a/parse.yacc +++ b/parse.yacc @@ -199,11 +199,11 @@ static void expand_match_list __P((void)); static aliasinfo *find_alias __P((char *, int)); static int more_aliases __P((void)); void init_parser __P((void)); - void yyerror __P((char *)); + void yyerror __P((const char *)); void yyerror(s) - char *s; + const char *s; { /* Save the line the first error occurred on. */ if (errorlineno == -1)