From 8bb05ac73a5b448b339ce0bc8d396c82c459b47f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 21:33:32 +0200 Subject: Merging upstream version 2.40. Signed-off-by: Daniel Baumann --- sys-utils/renice.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys-utils/renice.c') 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) -- cgit v1.2.3