From ea7436fb2d6ef8564ea7cc755b9338fcdafcb7c4 Mon Sep 17 00:00:00 2001 From: "osdl.org!shemminger" Date: Wed, 9 Jun 2004 22:53:56 +0000 Subject: [PATCH] more build problems on older systems. (Logical change 1.28) --- lib/ll_addr.c | 8 +++++--- lib/ll_proto.c | 12 +++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) 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;