Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/dmesg ANSIfy.
details: https://anonhg.NetBSD.org/src/rev/191077114553
branches: trunk
changeset: 487972:191077114553
user: simonb <simonb%NetBSD.org@localhost>
date: Fri Jun 16 03:42:12 2000 +0000
description:
ANSIfy.
diffstat:
sbin/dmesg/dmesg.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diffs (47 lines):
diff -r 859173499786 -r 191077114553 sbin/dmesg/dmesg.c
--- a/sbin/dmesg/dmesg.c Fri Jun 16 03:41:37 2000 +0000
+++ b/sbin/dmesg/dmesg.c Fri Jun 16 03:42:12 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dmesg.c,v 1.17 2000/06/16 00:20:23 simonb Exp $ */
+/* $NetBSD: dmesg.c,v 1.18 2000/06/16 03:42:12 simonb Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)dmesg.c 8.1 (Berkeley) 6/5/93";
#else
-__RCSID("$NetBSD: dmesg.c,v 1.17 2000/06/16 00:20:23 simonb Exp $");
+__RCSID("$NetBSD: dmesg.c,v 1.18 2000/06/16 03:42:12 simonb Exp $");
#endif
#endif /* not lint */
@@ -69,16 +69,14 @@
{ NULL },
};
-int main __P((int, char *[]));
-void usage __P((void));
+int main(int, char *[]);
+void usage(void);
#define KREAD(addr, var) \
kvm_read(kd, addr, &var, sizeof(var)) != sizeof(var)
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
struct kern_msgbuf cur;
int ch, newl, skip, i;
@@ -193,7 +191,7 @@
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: dmesg [-M core] [-N system]\n");
Home |
Main Index |
Thread Index |
Old Index