Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/modunload Kill __P(), use ANSI function declarations; W...
details: https://anonhg.NetBSD.org/src/rev/df106399a7c0
branches: trunk
changeset: 573690:df106399a7c0
user: xtraeme <xtraeme%NetBSD.org@localhost>
date: Sat Feb 05 14:35:25 2005 +0000
description:
Kill __P(), use ANSI function declarations; WARNS=3.
diffstat:
sbin/modunload/Makefile | 4 +++-
sbin/modunload/modunload.c | 17 +++++++----------
2 files changed, 10 insertions(+), 11 deletions(-)
diffs (69 lines):
diff -r d163293daa69 -r df106399a7c0 sbin/modunload/Makefile
--- a/sbin/modunload/Makefile Sat Feb 05 14:33:50 2005 +0000
+++ b/sbin/modunload/Makefile Sat Feb 05 14:35:25 2005 +0000
@@ -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>
diff -r d163293daa69 -r df106399a7c0 sbin/modunload/modunload.c
--- a/sbin/modunload/modunload.c Sat Feb 05 14:33:50 2005 +0000
+++ b/sbin/modunload/modunload.c Sat Feb 05 14:35:25 2005 +0000
@@ -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 @@
#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 @@
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;
Home |
Main Index |
Thread Index |
Old Index