From 500fb283e9b86a6580cedbf834aea9d7dd639a66 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Thu, 20 Aug 2020 09:35:24 +1000 Subject: Resolve compiler warnings and errors relating to the Arg union Promote the Arg union to a core data type in Object.c such that it is visible everywhere (many source files need it), and correct declarations of several functions that use it. The Process_sendSignal function is also corrected to have the expected return type (bool, not void) - an error being masked by ignoring this not-quite-harmless warning. I've also added error checking to the kill(2) call here, which was previously overlooked / missing (?). --- linux/LinuxProcess.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linux/LinuxProcess.h') diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h index f9984330..44ae91c1 100644 --- a/linux/LinuxProcess.h +++ b/linux/LinuxProcess.h @@ -5,6 +5,7 @@ /* htop - LinuxProcess.h (C) 2014 Hisham H. Muhammad +(C) 2020 Red Hat, Inc. All Rights Reserved. Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ @@ -176,7 +177,7 @@ extern io_priority; extern IOPriority LinuxProcess_updateIOPriority(LinuxProcess* this); -extern bool LinuxProcess_setIOPriority(LinuxProcess* this, IOPriority ioprio); +extern bool LinuxProcess_setIOPriority(LinuxProcess* this, Arg ioprio); #ifdef HAVE_DELAYACCT extern void LinuxProcess_printDelay(float delay_percent, char* buffer, int n); -- cgit v1.2.3