diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-14 18:59:25 +0200 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2008-08-22 20:52:58 +0200 |
commit | 1423c809cc4ddc2e013ba6264c49a11e5719c6f2 (patch) | |
tree | db0389e7de020bbcb9fd78d45417b0842a6adb0b /ripd | |
parent | [trivia] ignore automake generated 'compile' file (diff) | |
download | frr-1423c809cc4ddc2e013ba6264c49a11e5719c6f2.tar.xz frr-1423c809cc4ddc2e013ba6264c49a11e5719c6f2.zip |
[lib] mes_lookup string lookup table argument should be marked const
2008-08-14 Stephen Hemminger <stephen.hemminger@vyatta.com>
* lib/log.{c,h}: struct message argument should point to const
* */*.c: adjust to suit,
Signed-off-by: Paul Jakma <paul@quagga.net>
Diffstat (limited to 'ripd')
-rw-r--r-- | ripd/ripd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index 62d8691cc..2525679c4 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -76,7 +76,7 @@ enum }; /* RIP command strings. */ -struct message rip_msg[] = +static const struct message rip_msg[] = { {RIP_REQUEST, "REQUEST"}, {RIP_RESPONSE, "RESPONSE"}, @@ -84,6 +84,7 @@ struct message rip_msg[] = {RIP_TRACEOFF, "TRACEOFF"}, {RIP_POLL, "POLL"}, {RIP_POLL_ENTRY, "POLL ENTRY"}, + {0, NULL}, }; /* Utility function to set boradcast option to the socket. */ @@ -3508,7 +3509,7 @@ DEFUN (show_ip_rip_status, struct listnode *node; struct interface *ifp; struct rip_interface *ri; - extern struct message ri_version_msg[]; + extern const struct message ri_version_msg[]; const char *send_version; const char *receive_version; |