aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/nice/nice.c
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2002-09-04 23:29:10 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2002-09-04 23:29:10 +0000
commitf4ac32def255b5968bdd8150057b9c0d14595689 (patch)
treefb230419005f211ecea1e667385bde9886dbf0d8 /usr.bin/nice/nice.c
parentd946bf789255a84ecbbbdfd07bffb48da063204f (diff)
downloadsrc-f4ac32def255b5968bdd8150057b9c0d14595689.tar.gz
src-f4ac32def255b5968bdd8150057b9c0d14595689.zip
ANSIify function definitions.
Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
Notes
Notes: svn path=/head/; revision=102944
Diffstat (limited to 'usr.bin/nice/nice.c')
-rw-r--r--usr.bin/nice/nice.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/nice/nice.c b/usr.bin/nice/nice.c
index 527e3f0689b8..93f6a98213a6 100644
--- a/usr.bin/nice/nice.c
+++ b/usr.bin/nice/nice.c
@@ -64,9 +64,7 @@ __FBSDID("$FreeBSD$");
void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
long niceness = DEFNICE;
int ch;
@@ -108,7 +106,7 @@ main(argc, argv)
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: nice [-n incr] utility [arguments]\n");