]> granicus.if.org Git - sudo/commitdiff
fixed 2 compiler warnings
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 20 Jun 1996 04:20:13 +0000 (04:20 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 20 Jun 1996 04:20:13 +0000 (04:20 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index 1bb9a32b600f308499edca4ccd24bc8cf0d71581..53736b4fb755d4f739f8ea1f2ad748f05c72bbe8 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -379,7 +379,6 @@ static void load_globals(sudo_mode)
     int sudo_mode;
 {
     char *p;
-    struct passwd *pw_ent;
 #ifdef FQDN
     struct hostent *h_ent;
 #endif /* FQDN */
@@ -399,7 +398,7 @@ static void load_globals(sudo_mode)
 
        /* fill in uid and name fields with the uid */
        pw_ent.pw_uid = getuid();
-       (void) sprintf(pw_name, "%ld", pw_ent.pw_uid);
+       (void) sprintf(pw_name, "%ld", (long) pw_ent.pw_uid);
        pw_ent.pw_name = pw_name;
        user_pw_ent = &pw_ent;