2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-01 06:45:10 +00:00

Some -Wall and kill some trailing spaces

This commit is contained in:
Todd C. Miller
1999-07-05 20:11:50 +00:00
parent 82353107e2
commit 20002b5fe2

9
sudo.c
View File

@@ -64,6 +64,7 @@
#include <pwd.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
@@ -1021,8 +1022,8 @@ set_perms(perm, sudo_mode)
if (setgid(pw->pw_gid)) {
(void) fprintf(stderr,
"%s: cannot set gid to %d: ",
Argv[0], pw->pw_gid);
"%s: cannot set gid to %ld: ",
Argv[0], (long) pw->pw_gid);
perror("");
exit(1);
}
@@ -1043,8 +1044,8 @@ set_perms(perm, sudo_mode)
if (setuid(pw->pw_uid)) {
(void) fprintf(stderr,
"%s: cannot set uid to %d: ",
Argv[0], pw->pw_uid);
"%s: cannot set uid to %ld: ",
Argv[0], (long) pw->pw_uid);
perror("");
exit(1);
}