add cast for strdup in places it does not have it

This commit is contained in:
Todd C. Miller
1999-02-11 06:41:32 +00:00
parent 6993389719
commit f9b80fcad4
3 changed files with 4 additions and 4 deletions

View File

@@ -293,7 +293,7 @@ int main(argc, argv)
if ((p = strchr(host, '.'))) {
*p = '\0';
if ((shost = strdup(host)) == NULL) {
if ((shost = (char *) strdup(host)) == NULL) {
(void) fprintf(stderr, "%s: cannot allocate memory!\n", Argv[0]);
exit(1);
}