From: Denis Vlasenko Date: Tue, 30 Jan 2007 00:44:41 +0000 (-0000) Subject: preparatory patch for -Wwrite-strings #8 (missed part) X-Git-Tag: 1_5_1~243 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=27a131e08e97acc2371421ddab9cf9372acffbb3;p=oweals%2Fbusybox.git preparatory patch for -Wwrite-strings #8 (missed part) --- diff --git a/networking/libiproute/ll_types.c b/networking/libiproute/ll_types.c index a53c89432..416ea6bbe 100644 --- a/networking/libiproute/ll_types.c +++ b/networking/libiproute/ll_types.c @@ -11,17 +11,16 @@ */ #include #include - #include #include "rt_names.h" -const char * ll_type_n2a(int type, char *buf, int len) +const char* ll_type_n2a(int type, char *buf, int len) { #define __PF(f,n) { ARPHRD_##f, #n }, -static struct { +static const struct { int type; - char *name; + const char *name; } arphrd_names[] = { { 0, "generic" }, __PF(ETHER,ether) @@ -109,7 +108,7 @@ __PF(VOID,void) #undef __PF int i; - for (i=0; i