diff options
Diffstat (limited to 'lib/ll_types.c')
-rw-r--r-- | lib/ll_types.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ll_types.c b/lib/ll_types.c index 20183ad60..69141ade3 100644 --- a/lib/ll_types.c +++ b/lib/ll_types.c @@ -108,10 +108,10 @@ __PF(VOID, void) #undef __PF unsigned int i; - for (i = 0; !numeric && i < ARRAY_SIZE(arphrd_names); i++) { - if (arphrd_names[i].type == type) + for (i = 0; !numeric && i < ARRAY_SIZE(arphrd_names); i++) { + if (arphrd_names[i].type == type) return arphrd_names[i].name; } - snprintf(buf, len, "[%d]", type); - return buf; + snprintf(buf, len, "[%d]", type); + return buf; } |