Module Name:    src
Committed By:   joerg
Date:           Tue Sep  6 18:24:15 UTC 2011

Modified Files:
        src/usr.bin/nohup: nohup.c

Log Message:
ANSIfy + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/nohup/nohup.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.bin/nohup/nohup.c
diff -u src/usr.bin/nohup/nohup.c:1.14 src/usr.bin/nohup/nohup.c:1.15
--- src/usr.bin/nohup/nohup.c:1.14	Sun Apr 12 23:38:17 2009
+++ src/usr.bin/nohup/nohup.c	Tue Sep  6 18:24:15 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: nohup.c,v 1.14 2009/04/12 23:38:17 lukem Exp $	*/
+/*	$NetBSD: nohup.c,v 1.15 2011/09/06 18:24:15 joerg Exp $	*/
 
 /*
  * Copyright (c) 1989 The Regents of the University of California.
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)nohup.c	5.4 (Berkeley) 6/1/90";
 #endif
-__RCSID("$NetBSD: nohup.c,v 1.14 2009/04/12 23:38:17 lukem Exp $");
+__RCSID("$NetBSD: nohup.c,v 1.15 2011/09/06 18:24:15 joerg Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -53,9 +53,8 @@
 #include <string.h>
 #include <errno.h>
 
-static void dofile __P((void));
-static void usage __P((void));
-int main __P((int, char **));
+static void dofile(void);
+__dead static void usage(void);
 
 /* nohup shall exit with one of the following values:
    126 - The utility was found but could not be invoked.
@@ -66,9 +65,7 @@
 #define EXIT_MISC	127
 
 int
-main(argc, argv)
-	int argc;
-	char **argv;
+main(int argc, char **argv)
 {
 	int exit_status;
 
@@ -100,7 +97,7 @@
 }
 
 static void
-dofile()
+dofile(void)
 {
 	int fd;
 	char path[MAXPATHLEN];
@@ -138,7 +135,7 @@
 }
 
 static void
-usage()
+usage(void)
 {
 	(void)fprintf(stderr, "usage: nohup utility [argument ...]\n");
 	exit(EXIT_MISC);

Reply via email to