summaryrefslogtreecommitdiffstats
path: root/unsupported
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-10-03 22:00:27 +0200
committercgzones <cgzones@googlemail.com>2020-10-08 15:37:03 +0200
commit4a78f4bb928a4fd6b7b0c003ebdea279cf0d319f (patch)
tree12660b02902315c4036085d428838ad062acf339 /unsupported
parent2970cae5436c1e38a98661da3d59c3371051d606 (diff)
Some more locations for ARRAYSIZE
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Platform.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index 304989ee..b7fdf17d 100644
--- a/unsupported/Platform.c
+++ b/unsupported/Platform.c
@@ -9,6 +9,7 @@ in the source distribution for its full text.
#include <math.h>
#include "Platform.h"
+#include "Macros.h"
#include "CPUMeter.h"
#include "MemoryMeter.h"
#include "SwapMeter.h"
@@ -25,7 +26,7 @@ const SignalItem Platform_signals[] = {
{ .name = " 0 Cancel", .number = 0 },
};
-const unsigned int Platform_numberOfSignals = sizeof(Platform_signals)/sizeof(SignalItem);
+const unsigned int Platform_numberOfSignals = ARRAYSIZE(Platform_signals);
ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_SIZE, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 };

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