From a11d01568c5e7bc5570fd48fa0703d837c4bcd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 17 Feb 2021 17:38:35 +0100 Subject: Use unsigned types for CPU counts and associated variables --- unsupported/Platform.c | 2 +- unsupported/Platform.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported') diff --git a/unsupported/Platform.c b/unsupported/Platform.c index 9dc457b7..bdbc762e 100644 --- a/unsupported/Platform.c +++ b/unsupported/Platform.c @@ -93,7 +93,7 @@ int Platform_getMaxPid() { return 1; } -double Platform_setCPUValues(Meter* this, int cpu) { +double Platform_setCPUValues(Meter* this, unsigned int cpu) { (void) cpu; double* v = this->values; diff --git a/unsupported/Platform.h b/unsupported/Platform.h index 837daca4..9b89eb89 100644 --- a/unsupported/Platform.h +++ b/unsupported/Platform.h @@ -37,7 +37,7 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen); int Platform_getMaxPid(void); -double Platform_setCPUValues(Meter* this, int cpu); +double Platform_setCPUValues(Meter* this, unsigned int cpu); void Platform_setMemoryValues(Meter* this); -- cgit v1.2.3