added explict casts for strdup since many includes don't prototype

it.  gag me.
This commit is contained in:
Todd C. Miller
1995-11-25 18:53:22 +00:00
parent 6b80b1c56a
commit d7716e975e
3 changed files with 6 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ char * find_path(file)
if ((path = getenv("PATH")) == NULL)
return(NULL);
if ((path = strdup(path)) == NULL) {
if ((path = (char *) strdup(path)) == NULL) {
(void) fprintf(stderr, "%s: out of memory!\n", Argv[0]);
exit(1);
}