Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/what ANSIfy, static + __dead
details: https://anonhg.NetBSD.org/src/rev/31b02ad1c2db
branches: trunk
changeset: 769347:31b02ad1c2db
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Sep 06 18:45:49 2011 +0000
description:
ANSIfy, static + __dead
diffstat:
usr.bin/what/what.c | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
diffs (59 lines):
diff -r c67b4c8f8df0 -r 31b02ad1c2db usr.bin/what/what.c
--- a/usr.bin/what/what.c Tue Sep 06 18:45:21 2011 +0000
+++ b/usr.bin/what/what.c Tue Sep 06 18:45:49 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: what.c,v 1.10 2008/07/21 14:19:28 lukem Exp $ */
+/* $NetBSD: what.c,v 1.11 2011/09/06 18:45:49 joerg Exp $ */
/*
* Copyright (c) 1980, 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)what.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: what.c,v 1.10 2008/07/21 14:19:28 lukem Exp $");
+__RCSID("$NetBSD: what.c,v 1.11 2011/09/06 18:45:49 joerg Exp $");
#endif /* not lint */
#include <locale.h>
@@ -47,9 +47,8 @@
#include <stdlib.h>
#include <unistd.h>
-int main __P((int, char **));
-static void search __P((void));
-static void usage __P((void));
+static void search(void);
+__dead static void usage(void);
static int matches;
static int sflag;
@@ -59,9 +58,7 @@
*/
/* ARGSUSED */
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char **argv)
{
int c;
@@ -98,7 +95,7 @@
}
static void
-search()
+search(void)
{
int c;
@@ -123,7 +120,7 @@
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: what [-s] file ...\n");
Home |
Main Index |
Thread Index |
Old Index