added void casts for printf's

This commit is contained in:
Todd C. Miller
1995-03-24 19:18:09 +00:00
parent b7221f7ab1
commit 37aafbf098
2 changed files with 8 additions and 5 deletions

View File

@@ -210,8 +210,9 @@ static void realpath_restore(cwd)
/* relinquish root privs and chdir to where we started... */
set_perms(PERM_USER);
if (chdir(cwd)) {
fprintf(stderr, "Error: cannot change dir back to %s, sudo aborting!\n",
cwd);
(void) fprintf(stderr,
"Error: cannot change dir back to %s, sudo aborting!\n",
cwd);
exit(1);
}
}