added (void) casts to printf's

This commit is contained in:
Todd C. Miller
1995-03-24 19:15:43 +00:00
parent 34a6197f42
commit 35a22d345b

View File

@@ -144,7 +144,7 @@ int find_path(file, command, ocommand)
return (FALSE);
if ((path = strdup(path)) == NULL) {
fprintf(stderr, "sudo: out of memory!\n");
(void) fprintf(stderr, "sudo: out of memory!\n");
exit(1);
}
origpath=path;
@@ -229,7 +229,7 @@ static char * realpath_exec(path, file, command)
} else if (errno && errno != ENOENT && errno != ENOTDIR && errno != EINVAL
&& errno != EPERM && errno != EACCES) {
/* sudo_realpath() got an error */
fprintf(stderr, "sudo: Error resolving %s: ", fn);
(void) fprintf(stderr, "sudo: Error resolving %s: ", fn);
perror("");
}