Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/dev_mkdb Kill __P(), use ANSI function declarations...
details: https://anonhg.NetBSD.org/src/rev/1840e5e5c6d1
branches: trunk
changeset: 574884:1840e5e5c6d1
user: xtraeme <xtraeme%NetBSD.org@localhost>
date: Wed Mar 16 02:56:18 2005 +0000
description:
Kill __P(), use ANSI function declarations; WARNS=3
diffstat:
usr.sbin/dev_mkdb/Makefile | 4 +++-
usr.sbin/dev_mkdb/dev_mkdb.c | 13 +++++--------
2 files changed, 8 insertions(+), 9 deletions(-)
diffs (62 lines):
diff -r 08ac3e2c0bf4 -r 1840e5e5c6d1 usr.sbin/dev_mkdb/Makefile
--- a/usr.sbin/dev_mkdb/Makefile Wed Mar 16 02:55:10 2005 +0000
+++ b/usr.sbin/dev_mkdb/Makefile Wed Mar 16 02:56:18 2005 +0000
@@ -1,7 +1,9 @@
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93
-# $NetBSD: Makefile,v 1.5 1997/03/08 06:48:00 mikel Exp $
+# $NetBSD: Makefile,v 1.6 2005/03/16 02:56:18 xtraeme Exp $
PROG= dev_mkdb
MAN= dev_mkdb.8
+WARNS= 3
+
.include <bsd.prog.mk>
diff -r 08ac3e2c0bf4 -r 1840e5e5c6d1 usr.sbin/dev_mkdb/dev_mkdb.c
--- a/usr.sbin/dev_mkdb/dev_mkdb.c Wed Mar 16 02:55:10 2005 +0000
+++ b/usr.sbin/dev_mkdb/dev_mkdb.c Wed Mar 16 02:56:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dev_mkdb.c,v 1.20 2003/08/07 11:25:18 agc Exp $ */
+/* $NetBSD: dev_mkdb.c,v 1.21 2005/03/16 02:56:18 xtraeme Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "from: @(#)dev_mkdb.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: dev_mkdb.c,v 1.20 2003/08/07 11:25:18 agc Exp $");
+__RCSID("$NetBSD: dev_mkdb.c,v 1.21 2005/03/16 02:56:18 xtraeme Exp $");
#endif
#endif /* not lint */
@@ -59,8 +59,7 @@
#include <string.h>
#include <unistd.h>
-int main __P((int, char *[]));
-void usage __P((void));
+void usage(void);
HASHINFO openinfo = {
4096, /* bsize */
@@ -72,9 +71,7 @@
};
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char **argv)
{
struct stat *st;
struct {
@@ -207,7 +204,7 @@
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: dev_mkdb [-o database] [directory]\n");
Home |
Main Index |
Thread Index |
Old Index