summaryrefslogtreecommitdiffstats
path: root/sys-utils/renice.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/renice.c')
-rw-r--r--sys-utils/renice.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-utils/renice.c b/sys-utils/renice.c
index c4e1537..a8cf741 100644
--- a/sys-utils/renice.c
+++ b/sys-utils/renice.c
@@ -1,4 +1,6 @@
/*
+ * SPDX-License-Identifier: BSD-4-Clause-UC
+ *
* Copyright (c) 1983, 1989, 1993
* The Regents of the University of California. All rights reserved.
*
@@ -78,8 +80,8 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(_(" -g, --pgrp interpret arguments as process group ID\n"), out);
fputs(_(" -u, --user interpret arguments as username or user ID\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
- printf(USAGE_MAN_TAIL("renice(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_MAN_TAIL("renice(1)"));
exit(EXIT_SUCCESS);
}
@@ -100,7 +102,7 @@ static int donice(const int which, const int who, const int prio, const int rela
if (getprio(which, who, &oldprio) != 0)
return 1;
-
+
newprio = prio; // if not relative, set absolute priority
if (relative)