summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-11-03 15:46:20 +1100
committerNathan Scott <nathans@redhat.com>2021-11-03 15:46:20 +1100
commite64269df2cf4567c22005d0321028b85a78447a7 (patch)
tree207af0dfabd968750017e7eb35026f64ba402783
parentd8dfbbd37ca7855be44391697424edac9015f14f (diff)
Fix process state handling compiler warning on PCP platform
-rw-r--r--pcp/PCPProcessList.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcp/PCPProcessList.c b/pcp/PCPProcessList.c
index 8d866116..cae097fd 100644
--- a/pcp/PCPProcessList.c
+++ b/pcp/PCPProcessList.c
@@ -142,7 +142,7 @@ static inline char Metric_instance_char(int metric, int pid, int offset, char fa
return fallback;
}
-static inline PCPProcessList_getProcessState(char state) {
+static inline ProcessState PCPProcessList_getProcessState(char state) {
switch (state) {
case '?': return UNKNOWN;
case 'R': return RUNNING;

© 2014-2024 Faster IT GmbH | imprint | privacy policy