mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
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 (?).
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
/*
|
||||
htop - Process.h
|
||||
(C) 2004-2015 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.
|
||||
*/
|
||||
@ -199,9 +200,9 @@ extern void Process_toggleTag(Process* this);
|
||||
|
||||
extern bool Process_setPriority(Process* this, int priority);
|
||||
|
||||
extern bool Process_changePriorityBy(Process* this, int delta);
|
||||
extern bool Process_changePriorityBy(Process* this, Arg delta);
|
||||
|
||||
extern void Process_sendSignal(Process* this, int sgn);
|
||||
extern bool Process_sendSignal(Process* this, Arg sgn);
|
||||
|
||||
extern long Process_pidCompare(const void* v1, const void* v2);
|
||||
|
||||
|
Reference in New Issue
Block a user