2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-29 13:28:10 +00:00

added casts to lfind and lsearch args for irix

This commit is contained in:
Todd C. Miller 1995-03-29 20:42:07 +00:00
parent 204f665984
commit 5db1b51dae

View File

@ -304,7 +304,7 @@ int type;
ok = FALSE; /* assume failure */
ai.type = type;
strcpy(ai.name, alias);
if (lfind(&ai, aliases, &naliases, sizeof(ai), aliascmp) != NULL) {
if (lfind((const void *)&ai, (void *)aliases, (size_t *)&naliases, sizeof(ai), aliascmp) != NULL) {
sprintf(s, "Alias `%s' already defined", alias);
yyerror(s);
} else {
@ -313,7 +313,7 @@ int type;
yyerror(s);
}
aip = (aliasinfo *) lsearch(&ai, aliases, &naliases, sizeof(ai),
aip = (aliasinfo *) lsearch((const void *)&ai, (void *)aliases, (size_t *)&naliases, sizeof(ai),
aliascmp);
if (aip != NULL) {
@ -337,7 +337,7 @@ int type;
strcpy(ai.name, alias);
ai.type = type;
return(lfind(&ai, aliases, &naliases, sizeof(ai), aliascmp) != NULL);
return(lfind((const void *)&ai, (void *)aliases, (size_t *)&naliases, sizeof(ai), aliascmp) != NULL);
}
static int