diff options
author | Nathan Scott <nathans@redhat.com> | 2020-08-20 09:35:24 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-08-20 09:35:33 +1000 |
commit | 500fb283e9b86a6580cedbf834aea9d7dd639a66 (patch) | |
tree | 52c0df7aa5178887f14e48fc40c1dc45a8530dfc /Affinity.h | |
parent | 5228f5d47a10d9194297a31bf4cf7dbbade6c868 (diff) |
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 (?).
Diffstat (limited to 'Affinity.h')
-rw-r--r-- | Affinity.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5,6 +5,7 @@ /* htop - Affinity.h (C) 2004-2011 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. */ @@ -39,13 +40,13 @@ extern void Affinity_add(Affinity* this, int id); extern Affinity* Affinity_get(Process* proc, ProcessList* pl); -extern bool Affinity_set(Process* proc, Affinity* this); +extern bool Affinity_set(Process* proc, Arg arg); #elif HAVE_LINUX_AFFINITY extern Affinity* Affinity_get(Process* proc, ProcessList* pl); -extern bool Affinity_set(Process* proc, Affinity* this); +extern bool Affinity_set(Process* proc, Arg arg); #endif |