diff options
Diffstat (limited to 'networking/libiproute/ll_types.c')
-rw-r--r-- | networking/libiproute/ll_types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/libiproute/ll_types.c b/networking/libiproute/ll_types.c index 5d2843b14..84fd628cb 100644 --- a/networking/libiproute/ll_types.c +++ b/networking/libiproute/ll_types.c @@ -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; } |