Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/nohup ANSIfy + __dead
details: https://anonhg.NetBSD.org/src/rev/d3a6470152f2
branches: trunk
changeset: 769319:d3a6470152f2
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Sep 06 18:24:15 2011 +0000
description:
ANSIfy + __dead
diffstat:
usr.bin/nohup/nohup.c | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
diffs (59 lines):
diff -r ec1260b935db -r d3a6470152f2 usr.bin/nohup/nohup.c
--- a/usr.bin/nohup/nohup.c Tue Sep 06 18:19:58 2011 +0000
+++ b/usr.bin/nohup/nohup.c Tue Sep 06 18:24:15 2011 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index