inetmib1: Use the ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-07-30 21:18:08 +02:00 committed by Alexandre Julliard
parent 7228e2aa1e
commit c9329d6898
1 changed files with 2 additions and 2 deletions

View File

@ -1321,7 +1321,7 @@ BOOL WINAPI SnmpExtensionInit(DWORD dwUptimeReference,
pFirstSupportedRegion);
minSupportedIDLength = UINT_MAX;
for (i = 0; i < sizeof(supportedIDs) / sizeof(supportedIDs[0]); i++)
for (i = 0; i < ARRAY_SIZE(supportedIDs); i++)
{
if (supportedIDs[i].init)
supportedIDs[i].init();
@ -1337,7 +1337,7 @@ static void cleanup(void)
{
UINT i;
for (i = 0; i < sizeof(supportedIDs) / sizeof(supportedIDs[0]); i++)
for (i = 0; i < ARRAY_SIZE(supportedIDs); i++)
if (supportedIDs[i].cleanup)
supportedIDs[i].cleanup();
}