Introduce ARRAYSIZE

This commit is contained in:
Christian Göttsche
2020-09-28 21:14:50 +02:00
parent b82a13c6ba
commit 42946ec113
4 changed files with 7 additions and 3 deletions

View File

@ -79,7 +79,7 @@ const SignalItem Platform_signals[] = {
{ .name = "31 SIGSYS", .number = 31 },
};
const unsigned int Platform_numberOfSignals = sizeof(Platform_signals)/sizeof(SignalItem);
const unsigned int Platform_numberOfSignals = ARRAYSIZE(Platform_signals);
static Htop_Reaction Platform_actionSetIOPriority(State* st) {
Panel* panel = st->panel;