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
# $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>

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
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993\n\
#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 @@ __RCSID("$NetBSD: dev_mkdb.c,v 1.20 2003/08/07 11:25:18 agc Exp $");
#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 @@ HASHINFO openinfo = {
};
int
main(argc, argv)
int argc;
char *argv[];
main(int argc, char **argv)
{
struct stat *st;
struct {
@ -207,7 +204,7 @@ main(argc, argv)
}
void
usage()
usage(void)
{
(void)fprintf(stderr, "usage: dev_mkdb [-o database] [directory]\n");