diff --git a/lib/ll_addr.c b/lib/ll_addr.c index 082cb3c4..ea3d6609 100644 --- a/lib/ll_addr.c +++ b/lib/ll_addr.c @@ -17,13 +17,15 @@ #include #include #include -#include -#include -#include #include #include #include +#include +#include +#include + +#include "rt_names.h" #include "utils.h" diff --git a/lib/ll_proto.c b/lib/ll_proto.c index 71f149dc..98c67fe5 100644 --- a/lib/ll_proto.c +++ b/lib/ll_proto.c @@ -17,20 +17,22 @@ #include #include #include -#include -#include -#include #include #include #include +#include +#include +#include + #include "utils.h" +#include "rt_names.h" #define __PF(f,n) { ETH_P_##f, #n }, static struct { int id; - char *name; + const char *name; } llproto_names[] = { __PF(LOOP,loop) __PF(PUP,pup) @@ -97,7 +99,7 @@ __PF(ECONET,econet) #undef __PF -char * ll_proto_n2a(unsigned short id, char *buf, int len) +const char * ll_proto_n2a(unsigned short id, char *buf, int len) { int i;