From 8a489f424f74ef7cd82b430329e66220077b6ff8 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Sat, 5 Feb 2005 14:35:25 +0000 Subject: [PATCH] Kill __P(), use ANSI function declarations; WARNS=3. --- sbin/modunload/Makefile | 4 +++- sbin/modunload/modunload.c | 17 +++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/sbin/modunload/Makefile b/sbin/modunload/Makefile index 7b71c20cf646..07b017cbe9fd 100644 --- a/sbin/modunload/Makefile +++ b/sbin/modunload/Makefile @@ -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 diff --git a/sbin/modunload/modunload.c b/sbin/modunload/modunload.c index e4aedc1864b5..480648848966 100644 --- a/sbin/modunload/modunload.c +++ b/sbin/modunload/modunload.c @@ -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 #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 @@ -52,12 +52,11 @@ __RCSID("$NetBSD: modunload.c,v 1.12 2003/09/06 19:55:24 jdolecek Exp $"); #include #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;