Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/dump more KNF
details: https://anonhg.NetBSD.org/src/rev/814eccddc07b
branches: trunk
changeset: 510360:814eccddc07b
user: lukem <lukem%NetBSD.org@localhost>
date: Sun May 27 15:07:34 2001 +0000
description:
more KNF
diffstat:
sbin/dump/main.c | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diffs (62 lines):
diff -r 7bd44a4c9af9 -r 814eccddc07b sbin/dump/main.c
--- a/sbin/dump/main.c Sun May 27 14:31:27 2001 +0000
+++ b/sbin/dump/main.c Sun May 27 15:07:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.31 2001/05/27 14:17:56 lukem Exp $ */
+/* $NetBSD: main.c,v 1.32 2001/05/27 15:07:34 lukem Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: main.c,v 1.31 2001/05/27 14:17:56 lukem Exp $");
+__RCSID("$NetBSD: main.c,v 1.32 2001/05/27 15:07:34 lukem Exp $");
#endif
#endif /* not lint */
@@ -584,9 +584,7 @@
* range (except that a vmax of 0 means unlimited).
*/
static long
-numarg(meaning, vmin, vmax)
- char *meaning;
- long vmin, vmax;
+numarg(char *meaning, long vmin, long vmax)
{
char *p;
long val;
@@ -600,9 +598,9 @@
}
void
-sig(signo)
- int signo;
+sig(int signo)
{
+
switch(signo) {
case SIGALRM:
case SIGBUS:
@@ -627,8 +625,7 @@
}
char *
-rawname(cp)
- char *cp;
+rawname(char *cp)
{
static char rawbuf[MAXPATHLEN];
char *dp = strrchr(cp, '/');
@@ -647,9 +644,7 @@
* getopt(3) will like.
*/
static void
-obsolete(argcp, argvp)
- int *argcp;
- char **argvp[];
+obsolete(int *argcp, char **argvp[])
{
int argc, flags;
char *ap, **argv, *flagsp, **nargv, *p;
Home |
Main Index |
Thread Index |
Old Index