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

This commit is contained in:
xtraeme 2005-02-05 14:35:25 +00:00
parent b64027cd07
commit 8a489f424f
2 changed files with 10 additions and 11 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 1995/03/18 14:56:48 cgd Exp $
# $NetBSD: Makefile,v 1.7 2005/02/05 14:35:25 xtraeme Exp $
#
# Makefile for modunload
#
@ -37,4 +37,6 @@
PROG= modunload
MAN= modunload.8
WARNS= 3
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
/* $NetBSD: modunload.c,v 1.12 2003/09/06 19:55:24 jdolecek Exp $ */
/* $NetBSD: modunload.c,v 1.13 2005/02/05 14:35:25 xtraeme Exp $ */
/*
* Copyright (c) 1993 Terrence R. Lambert.
@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: modunload.c,v 1.12 2003/09/06 19:55:24 jdolecek Exp $");
__RCSID("$NetBSD: modunload.c,v 1.13 2005/02/05 14:35:25 xtraeme Exp $");
#endif /* not lint */
#include <sys/param.h>
@ -52,12 +52,11 @@ __RCSID("$NetBSD: modunload.c,v 1.12 2003/09/06 19:55:24 jdolecek Exp $");
#include <unistd.h>
#include "pathnames.h"
void cleanup __P((void));
int main __P((int, char *[]));
void usage __P((void));
void cleanup(void);
void usage(void);
void
usage()
usage(void)
{
fprintf(stderr, "usage:\n");
@ -68,16 +67,14 @@ usage()
int devfd;
void
cleanup()
cleanup(void)
{
close(devfd);
}
int
main(argc, argv)
int argc;
char *argv[];
main(int argc, char *argv[])
{
int c;
int modnum = -1;