From 27a131e08e97acc2371421ddab9cf9372acffbb3 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 30 Jan 2007 00:44:41 +0000 Subject: preparatory patch for -Wwrite-strings #8 (missed part) --- networking/libiproute/ll_types.c | 9 ++++----- networking/libiproute/rt_names.h | 7 +++---- 2 files changed, 7 insertions(+), 9 deletions(-) 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