Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms...
[oweals/busybox.git] / networking / libiproute / ll_types.c
index 5d2843b141a5b5c4b970b262797303093a4ba9f2..84fd628cba87c0203f282e1d6f0b2fc7a1e9aaa2 100644 (file)
@@ -108,7 +108,7 @@ __PF(VOID,void)
 #undef __PF
 
        int i;
-       for (i = 0; i < sizeof(arphrd_names)/sizeof(arphrd_names[0]); i++) {
+       for (i = 0; i < ARRAY_SIZE(arphrd_names); i++) {
                 if (arphrd_names[i].type == type)
                        return arphrd_names[i].name;
        }