From: Sami Kerola Date: Sat, 17 Aug 2013 18:15:19 +0000 (+0100) Subject: last: global variables are initialize automatically to zero X-Git-Tag: v2.24-rc1~335 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=751947b6fc64c989614f29fe844c0fe9f5e52c3f;p=thirdparty%2Futil-linux.git last: global variables are initialize automatically to zero Signed-off-by: Sami Kerola --- diff --git a/login-utils/last.c b/login-utils/last.c index e94f1f038e..e3add591a3 100644 --- a/login-utils/last.c +++ b/login-utils/last.c @@ -74,13 +74,13 @@ enum { }; /* Global variables */ -static unsigned int maxrecs = 0; /* Maximum number of records to list. */ -static unsigned int recsdone = 0; /* Number of records listed */ +static unsigned int maxrecs; /* Maximum number of records to list. */ +static unsigned int recsdone; /* Number of records listed */ static int showhost = 1; /* Show hostname too? */ -static int altlist = 0; /* Show hostname at the end. */ -static int usedns = 0; /* Use DNS to lookup the hostname. */ -static int useip = 0; /* Print IP address in number format */ -static int fulltime = 0; /* Print full dates and times */ +static int altlist; /* Show hostname at the end. */ +static int usedns; /* Use DNS to lookup the hostname. */ +static int useip; /* Print IP address in number format */ +static int fulltime; /* Print full dates and times */ static int name_len = 8; /* Default print 8 characters of name */ static int domain_len = 16; /* Default print 16 characters of domain */ static char **show = NULL; /* What do they want us to show */