]> granicus.if.org Git - sudo/commitdiff
yyerror and dumpaliases are now void's
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 23 Sep 1995 20:48:16 +0000 (20:48 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 23 Sep 1995 20:48:16 +0000 (20:48 +0000)
now passes -Wall

parse.yacc

index 1719a12f1a94cf7186a41b26abec0e9d96a49045..596f7749f4bfe0abee4149f65d7d8e77eae67483 100644 (file)
@@ -101,9 +101,10 @@ static int find_alias              __P((char *, int));
 static int add_alias           __P((char *, int));
 static int more_aliases                __P((size_t));
 static char *dotcat            __P((char *, char *));
+       void yyerror            __P((char *));
 
-int yyerror(s)
-char *s;
+void yyerror(s)
+    char *s;
 {
     /* save the line the first error occured on */
     if (errorlineno == -1)
@@ -448,7 +449,7 @@ static int more_aliases(nslots)
 }
 
 
-int dumpaliases()
+void dumpaliases()
 {
     size_t n;