mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +00:00
added casts to lfind and lsearch args for irix
This commit is contained in:
parent
204f665984
commit
5db1b51dae
@ -304,7 +304,7 @@ int type;
|
|||||||
ok = FALSE; /* assume failure */
|
ok = FALSE; /* assume failure */
|
||||||
ai.type = type;
|
ai.type = type;
|
||||||
strcpy(ai.name, alias);
|
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);
|
sprintf(s, "Alias `%s' already defined", alias);
|
||||||
yyerror(s);
|
yyerror(s);
|
||||||
} else {
|
} else {
|
||||||
@ -313,7 +313,7 @@ int type;
|
|||||||
yyerror(s);
|
yyerror(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
aip = (aliasinfo *) lsearch(&ai, aliases, &naliases, sizeof(ai),
|
aip = (aliasinfo *) lsearch((const void *)&ai, (void *)aliases, (size_t *)&naliases, sizeof(ai),
|
||||||
aliascmp);
|
aliascmp);
|
||||||
|
|
||||||
if (aip != NULL) {
|
if (aip != NULL) {
|
||||||
@ -337,7 +337,7 @@ int type;
|
|||||||
strcpy(ai.name, alias);
|
strcpy(ai.name, alias);
|
||||||
ai.type = type;
|
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
|
static int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user