summaryrefslogtreecommitdiffstats
path: root/usr.bin/nice/nice.c
diff options
context:
space:
mode:
authorpvalchev <pvalchev@openbsd.org>2001-05-24 03:04:35 +0000
committerpvalchev <pvalchev@openbsd.org>2001-05-24 03:04:35 +0000
commitd7f8b60e6f9630a75a09bc9d7f2f045033b0da0a (patch)
tree5056f6e634988a76bc539839ba61e629a5c9597c /usr.bin/nice/nice.c
parent- Let '-' mean stdin. (diff)
downloadwireguard-openbsd-d7f8b60e6f9630a75a09bc9d7f2f045033b0da0a.tar.xz
wireguard-openbsd-d7f8b60e6f9630a75a09bc9d7f2f045033b0da0a.zip
- Add a main() prototype.
- Use __progname in usage(). millert@ ok
Diffstat (limited to 'usr.bin/nice/nice.c')
-rw-r--r--usr.bin/nice/nice.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/nice/nice.c b/usr.bin/nice/nice.c
index c119b88a32c..c6a691be491 100644
--- a/usr.bin/nice/nice.c
+++ b/usr.bin/nice/nice.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nice.c,v 1.3 2000/11/07 09:04:21 kevlo Exp $ */
+/* $OpenBSD: nice.c,v 1.4 2001/05/24 03:04:35 pvalchev Exp $ */
/* $NetBSD: nice.c,v 1.9 1995/08/31 23:30:58 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ char copyright[] =
#if 0
static char sccsid[] = "@(#)nice.c 5.4 (Berkeley) 6/1/90";
#endif
-static char rcsid[] = "$OpenBSD: nice.c,v 1.3 2000/11/07 09:04:21 kevlo Exp $";
+static char rcsid[] = "$OpenBSD: nice.c,v 1.4 2001/05/24 03:04:35 pvalchev Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -61,6 +61,7 @@ static char rcsid[] = "$OpenBSD: nice.c,v 1.3 2000/11/07 09:04:21 kevlo Exp $";
#define DEFNICE 10
+int main __P((int, char **));
static void usage __P((void));
int
@@ -114,8 +115,8 @@ main(argc, argv)
static void
usage()
{
- (void)fprintf(stderr,
- "usage: nice [ -n increment ] utility [ argument ...]\n");
-
+ extern char *__progname;
+ fprintf(stderr, "usage: %s [ -n increment ] utility [ argument ...]\n",
+ __progname);
exit(1);
}