[Pkg-shadow-commits] r1584 - upstream/trunk/src
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Mon Dec 31 20:14:32 UTC 2007
Author: nekral-guest
Date: 2007-12-31 20:14:31 +0000 (Mon, 31 Dec 2007)
New Revision: 1584
Modified:
upstream/trunk/src/lastlog.c
Log:
Compilation fix. user was removed from the list of global variables.
Modified: upstream/trunk/src/lastlog.c
===================================================================
--- upstream/trunk/src/lastlog.c 2007-12-31 20:12:48 UTC (rev 1583)
+++ upstream/trunk/src/lastlog.c 2007-12-31 20:14:31 UTC (rev 1584)
@@ -127,6 +127,7 @@
static void print (void)
{
off_t offset;
+ uid_t user;
setpwent ();
while ((pwent = getpwent ())) {
@@ -200,7 +201,7 @@
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> */
More information about the Pkg-shadow-commits
mailing list