From: Todd C. Miller Date: Fri, 24 Mar 1995 19:15:43 +0000 (+0000) Subject: added (void) casts to printf's X-Git-Tag: SUDO_1_4_0~619 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35a22d345b9a8863780da5e40a68e77904a2bb95;p=sudo added (void) casts to printf's --- diff --git a/find_path.c b/find_path.c index 4edaab606..49f667c17 100644 --- a/find_path.c +++ b/find_path.c @@ -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(""); }