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 # Makefile for modunload
# #
@ -37,4 +37,6 @@
PROG= modunload PROG= modunload
MAN= modunload.8 MAN= modunload.8
WARNS= 3
.include <bsd.prog.mk> .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. * Copyright (c) 1993 Terrence R. Lambert.
@ -34,7 +34,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #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 */ #endif /* not lint */
#include <sys/param.h> #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 <unistd.h>
#include "pathnames.h" #include "pathnames.h"
void cleanup __P((void)); void cleanup(void);
int main __P((int, char *[])); void usage(void);
void usage __P((void));
void void
usage() usage(void)
{ {
fprintf(stderr, "usage:\n"); fprintf(stderr, "usage:\n");
@ -68,16 +67,14 @@ usage()
int devfd; int devfd;
void void
cleanup() cleanup(void)
{ {
close(devfd); close(devfd);
} }
int int
main(argc, argv) main(int argc, char *argv[])
int argc;
char *argv[];
{ {
int c; int c;
int modnum = -1; int modnum = -1;