snmpapi/tests: Use the available 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
1e9de768c9
commit
a49b28cc77
|
@ -211,7 +211,7 @@ static void test_SnmpUtilOidCpyFree(void)
|
||||||
{
|
{
|
||||||
INT ret;
|
INT ret;
|
||||||
static UINT ids[] = { 1, 3, 6, 1, 4, 1, 311 };
|
static UINT ids[] = { 1, 3, 6, 1, 4, 1, 311 };
|
||||||
static AsnObjectIdentifier dst, src = { sizeof(ids) / sizeof(ids[0]), ids };
|
static AsnObjectIdentifier dst, src = { ARRAY_SIZE(ids), ids };
|
||||||
|
|
||||||
/* These crashes under win98 */
|
/* These crashes under win98 */
|
||||||
if(0)
|
if(0)
|
||||||
|
|
Loading…
Reference in New Issue