From 751947b6fc64c989614f29fe844c0fe9f5e52c3f Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 17 Aug 2013 19:15:19 +0100 Subject: last: global variables are initialize automatically to zero Signed-off-by: Sami Kerola --- login-utils/last.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'login-utils/last.c') diff --git a/login-utils/last.c b/login-utils/last.c index e94f1f038..e3add591a 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 */ -- cgit v1.2.3-55-g7522