From 1ec694eae715b4fa79b924bd58988a46653cc512 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Mon, 31 Dec 2007 20:14:31 +0000 Subject: [PATCH] Compilation fix. user was removed from the list of global variables. --- src/lastlog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lastlog.c b/src/lastlog.c index d8c44210..449012b0 100644 --- a/src/lastlog.c +++ b/src/lastlog.c @@ -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) { /* - */