Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/lastlogin __dead + ANSIfy



details:   https://anonhg.NetBSD.org/src/rev/c55284403cae
branches:  trunk
changeset: 769097:c55284403cae
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Aug 31 13:31:29 2011 +0000

description:
__dead + ANSIfy

diffstat:

 usr.sbin/lastlogin/lastlogin.c |  11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (41 lines):

diff -r 80451fc56963 -r c55284403cae usr.sbin/lastlogin/lastlogin.c
--- a/usr.sbin/lastlogin/lastlogin.c    Wed Aug 31 13:30:44 2011 +0000
+++ b/usr.sbin/lastlogin/lastlogin.c    Wed Aug 31 13:31:29 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lastlogin.c,v 1.14 2009/04/16 05:59:56 lukem Exp $     */
+/*     $NetBSD: lastlogin.c,v 1.15 2011/08/31 13:31:29 joerg Exp $     */
 /*
  * Copyright (c) 1996 John M. Vinopal
  * All rights reserved.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: lastlogin.c,v 1.14 2009/04/16 05:59:56 lukem Exp $");
+__RCSID("$NetBSD: lastlogin.c,v 1.15 2011/08/31 13:31:29 joerg Exp $");
 #endif
 
 #include <sys/types.h>
@@ -78,7 +78,6 @@
 static size_t linelen = UT_LINESIZE;
 static size_t hostlen = UT_HOSTSIZE;
 
-       int     main(int, char **);
 static int     comparelog(const void *, const void *);
 static void    output(struct output *);
 #ifdef SUPPORT_UTMP
@@ -92,12 +91,10 @@
 static void    push(struct output *);
 static const char      *gethost(struct output *);
 static void    sortoutput(struct output *);
-static void    usage(void);
+__dead static  void    usage(void);
 
 int
-main(argc, argv)
-       int argc;
-       char *argv[];
+main(int argc, char *argv[])
 {
        const char *logfile =
 #if defined(SUPPORT_UTMPX)



Home | Main Index | Thread Index | Old Index