]> granicus.if.org Git - shadow/commitdiff
Compilation fix. user was removed from the list of global variables.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 31 Dec 2007 20:14:31 +0000 (20:14 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 31 Dec 2007 20:14:31 +0000 (20:14 +0000)
src/lastlog.c

index d8c44210a308ba1228c707586fe0eea29b20c037..449012b057db2c5c09a1438623a5a39bb9414515 100644 (file)
@@ -127,6 +127,7 @@ static void print_one (const struct passwd *pw)
 static void print (void)
 {
        off_t offset;
+       uid_t user;
 
        setpwent ();
        while ((pwent = getpwent ())) {
@@ -200,7 +201,7 @@ int main (int argc, char **argv)
                                        umax = umin;
                                } else {
                                        char *endptr = NULL;
-                                       user = strtol(optarg, &endptr, 10);
+                                       uid_t user = strtol(optarg, &endptr, 10);
                                        if (*optarg != '\0' && *endptr == '\0') {
                                                if (user < 0) {
                                                        /* -<userid> */