From a783a139f00b19557ff3d2302deb7d112ce79526 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 10 Apr 1995 22:04:34 +0000 Subject: [PATCH] fixed probs caused by making nslots and naliases a size_t --- parse.yacc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parse.yacc b/parse.yacc index 294105d8f..c7274ba1e 100644 --- a/parse.yacc +++ b/parse.yacc @@ -94,7 +94,7 @@ extern int path_matches __P((char *, char *)); extern int addr_matches __P((char *)); static int find_alias __P((char *, int)); static int add_alias __P((char *, int)); -static int more_aliases __P((int)); +static int more_aliases __P((size_t)); int yyerror(s) char *s; @@ -394,9 +394,9 @@ size_t nslots; int dumpaliases() { - size_t n = naliases; + size_t n; - while (n--) + for (n = 0; n < naliases; n++) printf("%s\t%s\n", aliases[n].type == HOST ? "HOST" : "CMND", aliases[n].name);