Kill __P(), use ANSI function declarations; WARNS=3

This commit is contained in:
xtraeme 2005-03-16 02:56:18 +00:00
parent baf27f3e61
commit cf66608ca4
2 changed files with 8 additions and 9 deletions

View File

@ -1,7 +1,9 @@
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93 # 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 PROG= dev_mkdb
MAN= dev_mkdb.8 MAN= dev_mkdb.8
WARNS= 3
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -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 * Copyright (c) 1990, 1993
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993\n\
#if 0 #if 0
static char sccsid[] = "from: @(#)dev_mkdb.c 8.1 (Berkeley) 6/6/93"; static char sccsid[] = "from: @(#)dev_mkdb.c 8.1 (Berkeley) 6/6/93";
#else #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
#endif /* not lint */ #endif /* not lint */
@ -59,8 +59,7 @@ __RCSID("$NetBSD: dev_mkdb.c,v 1.20 2003/08/07 11:25:18 agc Exp $");
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
int main __P((int, char *[])); void usage(void);
void usage __P((void));
HASHINFO openinfo = { HASHINFO openinfo = {
4096, /* bsize */ 4096, /* bsize */
@ -72,9 +71,7 @@ HASHINFO openinfo = {
}; };
int int
main(argc, argv) main(int argc, char **argv)
int argc;
char *argv[];
{ {
struct stat *st; struct stat *st;
struct { struct {
@ -207,7 +204,7 @@ main(argc, argv)
} }
void void
usage() usage(void)
{ {
(void)fprintf(stderr, "usage: dev_mkdb [-o database] [directory]\n"); (void)fprintf(stderr, "usage: dev_mkdb [-o database] [directory]\n");