2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

fixed probs caused by making nslots and naliases a size_t

This commit is contained in:
Todd C. Miller
1995-04-10 22:04:34 +00:00
parent 31ed7f4575
commit a783a139f0

View File

@@ -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);