]> granicus.if.org Git - sudo/commitdiff
add cast to uid_t
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 15 Nov 2004 14:50:03 +0000 (14:50 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 15 Nov 2004 14:50:03 +0000 (14:50 +0000)
match.c

diff --git a/match.c b/match.c
index 0e4c4d6acd3524f9fb096e5234b4e9feb7da725f..ca04a33c9d91110e48335e3a6e9ad4d05fd23e7d 100644 (file)
--- a/match.c
+++ b/match.c
@@ -486,7 +486,7 @@ userpw_matches(sudoers_user, user, pw)
     struct passwd *pw;
 {
     if (pw != NULL && *sudoers_user == '#') {
-       uid_t uid = atoi(sudoers_user + 1);
+       uid_t uid = (uid_t) atoi(sudoers_user + 1);
        if (uid == pw->pw_uid)
            return(1);
     }