Build fixes for 2.4 and align functions with protos

use initializers.

(Logical change 1.16)
This commit is contained in:
osdl.org!shemminger 2004-06-08 23:50:43 +00:00
parent d25ad2901e
commit b88fd9f48c
1 changed files with 19 additions and 13 deletions

View File

@ -16,6 +16,12 @@
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/socket.h>
#include <asm/types.h>
#include <linux/rtnetlink.h>
#include "rt_names.h"
static void rtnl_tab_initialize(char *file, char **tab, int size) static void rtnl_tab_initialize(char *file, char **tab, int size)
{ {
@ -53,19 +59,19 @@ static void rtnl_tab_initialize(char *file, char **tab, int size)
static char * rtnl_rtprot_tab[256] = { static char * rtnl_rtprot_tab[256] = {
"none", [RTPROT_UNSPEC] = "none",
"redirect", [RTPROT_REDIRECT] ="redirect",
"kernel", [RTPROT_KERNEL] = "kernel",
"boot", [RTPROT_BOOT] = "boot",
"static", [RTPROT_STATIC] = "static",
NULL,
NULL, [RTPROT_GATED] = "gated",
NULL, [RTPROT_RA] = "ra",
"gated", [RTPROT_MRT] = "mrt",
"ra", [RTPROT_ZEBRA] ="zebra",
"mrt", [RTPROT_BIRD] = "bird",
"zebra", [RTPROT_DNROUTED] = "dnrouted",
"bird", [RTPROT_XORP] = "xorp",
}; };