commit | 8e4c09307d9eafbbbf7fbffb3d3483287cea169b | [log] [tgz] |
---|---|---|
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | Fri May 15 09:47:34 2009 -0700 |
committer | Paul Jakma <paul@quagga.net> | Thu Jun 18 20:18:29 2009 +0100 |
tree | c9b39213248d64fdaa28bc419e77ce1e3866a585 | |
parent | fc52f95373b1dc0bec5f5a474bafa362b02a63ae [diff] [blame] |
[cleanup] Allow message tables to be constant Avoid bugs, and improve cache locality by allowing message lists to be read/only.
diff --git a/lib/log.c b/lib/log.c index f7a3685..8c3e2dd 100644 --- a/lib/log.c +++ b/lib/log.c
@@ -771,7 +771,7 @@ * provided otherwise. */ const char * -mes_lookup (struct message *meslist, int max, int index, const char *none) +mes_lookup (const struct message *meslist, int max, int index, const char *none) { int pos = index - meslist[0].key;