Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/skeyinfo ANSIfy and sort includes



details:   https://anonhg.NetBSD.org/src/rev/5f29cd94b400
branches:  trunk
changeset: 747182:5f29cd94b400
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Sep 05 06:15:24 2009 +0000

description:
ANSIfy and sort includes

diffstat:

 usr.bin/skeyinfo/skeyinfo.c |  15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diffs (38 lines):

diff -r c4eebe4c6b81 -r 5f29cd94b400 usr.bin/skeyinfo/skeyinfo.c
--- a/usr.bin/skeyinfo/skeyinfo.c       Sat Sep 05 06:13:34 2009 +0000
+++ b/usr.bin/skeyinfo/skeyinfo.c       Sat Sep 05 06:15:24 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: skeyinfo.c,v 1.6 2009/09/05 06:13:34 dholland Exp $    */
+/*     $NetBSD: skeyinfo.c,v 1.7 2009/09/05 06:15:24 dholland Exp $    */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,23 +31,20 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: skeyinfo.c,v 1.6 2009/09/05 06:13:34 dholland Exp $");
+__RCSID("$NetBSD: skeyinfo.c,v 1.7 2009/09/05 06:15:24 dholland Exp $");
 #endif
 
-#include <stdio.h>
-#include <pwd.h>
 #include <err.h>
 #include <errno.h>
-#include <skey.h>
+#include <pwd.h>
+#include <stdio.h>
 #include <string.h>
 #include <unistd.h>
 
-int main __P((int, char *[]));
+#include <skey.h> /* requires stdio.h */
 
 int
-main(argc, argv)
-       int             argc;
-       char           *argv[];
+main(int argc, char *argv[])
 {
        struct skey     skey;
        char            name[100], prompt[1024];



Home | Main Index | Thread Index | Old Index