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:
parent
7228e2aa1e
commit
c9329d6898
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue