]> granicus.if.org Git - sudo/commitdiff
added (void) casts to printf's
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Mar 1995 19:15:43 +0000 (19:15 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Mar 1995 19:15:43 +0000 (19:15 +0000)
find_path.c

index 4edaab606cf56e3b1cbd05eab8cae24d2ea4ce45..49f667c174c2dc5abf1942095c335f843e88e358 100644 (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("");
     }