From c9af5d97cfe88982a7d78c5a5a1322615723b45e Mon Sep 17 00:00:00 2001 From: lukem Date: Sun, 19 Oct 1997 06:28:02 +0000 Subject: [PATCH] WARNSify, fix .Nm usage --- usr.bin/nice/nice.1 | 18 +++++++++--------- usr.bin/nice/nice.c | 14 ++++++++------ 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/usr.bin/nice/nice.1 b/usr.bin/nice/nice.1 index 08efb1b59885..4dba5c9a6a35 100644 --- a/usr.bin/nice/nice.1 +++ b/usr.bin/nice/nice.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: nice.1,v 1.7 1997/08/25 16:42:36 kleink Exp $ +.\" $NetBSD: nice.1,v 1.8 1997/10/19 06:28:02 lukem Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -40,12 +40,12 @@ .Nm nice .Nd execute a utility with an altered scheduling priority .Sh SYNOPSIS -.Nm nice +.Nm .Op Fl n Ar increment .Ar utility .Op Ar argument ... .Sh DESCRIPTION -.Nm Nice +.Nm runs .Ar utility at an altered scheduling priority. @@ -68,12 +68,12 @@ priority of .El .Sh DIAGNOSTICS The -.Nm nice +.Nm utility shall exit with one of the following values: .Bl -tag -width indent .It 1-125 An error occurred in the -.Nm nice +.Nm utility. .It 126 The @@ -86,7 +86,7 @@ could not be found. .El .Pp Otherwise, the exit status of -.Nm nice +.Nm shall be that of .Ar utility . .Sh COMPATIBILITY @@ -100,16 +100,16 @@ option has been deprecated but is still supported in this implementation. .Xr renice 8 .Sh STANDARDS The -.Nm nice +.Nm utility conforms to .St -p1003.2-92 . .Sh HISTORY A -.Nm nice +.Nm utility appeared in .At v6 . .Sh BUGS -.Nm Nice +.Nm is built into .Xr csh 1 with a slightly different syntax than described here. The form diff --git a/usr.bin/nice/nice.c b/usr.bin/nice/nice.c index dc32e08fbe67..62a197e457da 100644 --- a/usr.bin/nice/nice.c +++ b/usr.bin/nice/nice.c @@ -1,4 +1,4 @@ -/* $NetBSD: nice.c,v 1.9 1995/08/31 23:30:58 jtc Exp $ */ +/* $NetBSD: nice.c,v 1.10 1997/10/19 06:28:04 lukem Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -33,17 +33,18 @@ * SUCH DAMAGE. */ +#include #ifndef lint -char copyright[] = -"@(#) Copyright (c) 1989 The Regents of the University of California.\n\ - All rights reserved.\n"; +__COPYRIGHT( + "@(#) Copyright (c) 1989 The Regents of the University of California.\n\ + All rights reserved.\n"); #endif /* not lint */ #ifndef lint #if 0 static char sccsid[] = "@(#)nice.c 5.4 (Berkeley) 6/1/90"; #endif -static char rcsid[] = "$NetBSD: nice.c,v 1.9 1995/08/31 23:30:58 jtc Exp $"; +__RCSID("$NetBSD: nice.c,v 1.10 1997/10/19 06:28:04 lukem Exp $"); #endif /* not lint */ #include @@ -60,7 +61,8 @@ static char rcsid[] = "$NetBSD: nice.c,v 1.9 1995/08/31 23:30:58 jtc Exp $"; #define DEFNICE 10 -static void usage(); +int main __P((int, char **)); +static void usage __P((void)); int main(argc, argv)