Module Name:    src
Committed By:   joerg
Date:           Tue Aug 30 20:07:32 UTC 2011

Modified Files:
        src/usr.sbin/nfsd: nfsd.c

Log Message:
static + ANSIfy + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/usr.sbin/nfsd/nfsd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/nfsd/nfsd.c
diff -u src/usr.sbin/nfsd/nfsd.c:1.57 src/usr.sbin/nfsd/nfsd.c:1.58
--- src/usr.sbin/nfsd/nfsd.c:1.57	Mon Dec 21 05:06:55 2009
+++ src/usr.sbin/nfsd/nfsd.c	Tue Aug 30 20:07:31 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: nfsd.c,v 1.57 2009/12/21 05:06:55 christos Exp $	*/
+/*	$NetBSD: nfsd.c,v 1.58 2011/08/30 20:07:31 joerg Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)nfsd.c	8.9 (Berkeley) 3/29/95";
 #else
-__RCSID("$NetBSD: nfsd.c,v 1.57 2009/12/21 05:06:55 christos Exp $");
+__RCSID("$NetBSD: nfsd.c,v 1.58 2011/08/30 20:07:31 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -86,14 +86,13 @@
     fprintf(stderr,(s), ## args);					\
     fprintf(stderr, "\n");						\
 } while (/*CONSTCOND*/0)
-int	debug = 1;
+static int	debug = 1;
 #else
-int	debug = 0;
+static int	debug = 0;
 #endif
 
-int	main __P((int, char **));
-void	nonfs __P((int));
-void	usage __P((void));
+static void	nonfs(int);
+__dead static void	usage(void);
 
 static void *
 worker(void *dummy)
@@ -135,9 +134,7 @@
  * followed by "n" which is the number of nfsd threads to create
  */
 int
-main(argc, argv)
-	int argc;
-	char *argv[];
+main(int argc, char *argv[])
 {
 	struct nfsd_args nfsdargs;
 	struct addrinfo *ai_udp, *ai_tcp, *ai_udp6, *ai_tcp6, hints;
@@ -570,16 +567,15 @@
 	}
 }
 
-void
-usage()
+static void
+usage(void)
 {
 	(void)fprintf(stderr, "usage: nfsd %s\n", USAGE);
 	exit(1);
 }
 
-void
-nonfs(signo)
-	int signo;
+static void
+nonfs(int signo)
 {
 	syslog(LOG_ERR, "missing system call: NFS not available.");
 }

Reply via email to