diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-10-03 22:00:27 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-08 15:37:03 +0200 |
commit | 4a78f4bb928a4fd6b7b0c003ebdea279cf0d319f (patch) | |
tree | 12660b02902315c4036085d428838ad062acf339 /darwin | |
parent | 2970cae5436c1e38a98661da3d59c3371051d606 (diff) |
Some more locations for ARRAYSIZE
Diffstat (limited to 'darwin')
-rw-r--r-- | darwin/Platform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c index 4d8ede32..99787a27 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -7,6 +7,7 @@ in the source distribution for its full text. */ #include "Platform.h" +#include "Macros.h" #include "CPUMeter.h" #include "MemoryMeter.h" #include "SwapMeter.h" @@ -63,7 +64,7 @@ const SignalItem Platform_signals[] = { { .name = "31 SIGUSR2", .number = 31 }, }; -const unsigned int Platform_numberOfSignals = sizeof(Platform_signals)/sizeof(SignalItem); +const unsigned int Platform_numberOfSignals = ARRAYSIZE(Platform_signals); ProcessFieldData Process_fields[] = { [0] = { .name = "", .title = NULL, .description = NULL, .flags = 0, }, |