From 31d9b6c31d949bf0e884d8a6e02939345b9816e1 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Sat, 17 Apr 2010 16:50:23 +0100 Subject: Bring up to date with 0.99.16 release This brings this branch up to date with 0.99.16, EXCEPT for the change to bgpd to use monotonic clock for timing updates. There are places where bgpd expects to find the actual time that things happened... so this change is not though to be complete. Further tidying in zebra, for FreeBSD. --- lib/command.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/command.c') diff --git a/lib/command.c b/lib/command.c index 6fe54d13..a78ac05c 100644 --- a/lib/command.c +++ b/lib/command.c @@ -86,7 +86,7 @@ static struct cmd_node config_node = }; /* Default motd string. */ -const char *default_motd = +static const char *default_motd = "\r\n\ Hello, this is " QUAGGA_PROGNAME " (version " QUAGGA_VERSION ").\r\n\ " QUAGGA_COPYRIGHT "\r\n\ @@ -98,7 +98,7 @@ const char *debug_banner = __DATE__ " " __TIME__; #endif -static struct facility_map { +static const struct facility_map { int facility; const char *name; size_t match; @@ -131,7 +131,7 @@ static struct facility_map { static const char * facility_name(int facility) { - struct facility_map *fm; + const struct facility_map *fm; for (fm = syslog_facilities; fm->name; fm++) if (fm->facility == facility) @@ -142,7 +142,7 @@ facility_name(int facility) static int facility_match(const char *str) { - struct facility_map *fm; + const struct facility_map *fm; for (fm = syslog_facilities; fm->name; fm++) if (!strncmp(str,fm->name,fm->match)) @@ -665,7 +665,7 @@ install_element (enum node_type ntype, struct cmd_element *cmd) cmd->cmdsize = cmd_cmdsize (cmd->strvec); } -static unsigned char itoa64[] = +static const unsigned char itoa64[] = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; static void -- cgit v1.2.3