diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-15 09:47:34 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-15 09:47:34 -0700 |
commit | 17b1ca6fc128faadfd4e7d7861be9c11a5ccffcf (patch) | |
tree | b06c041aa9db23449cc74b225cd5ccec787303bc /lib/log.c | |
parent | ef7a6efe95f03e1717d3ed48d1221675f76e46fe (diff) | |
download | quagga-17b1ca6fc128faadfd4e7d7861be9c11a5ccffcf.tar.bz2 quagga-17b1ca6fc128faadfd4e7d7861be9c11a5ccffcf.tar.xz |
Allow message tables to be constant
Avoid bugs, and improve cache locality by allowing message lists
to be read/only.
Diffstat (limited to 'lib/log.c')
-rw-r--r-- | lib/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -771,7 +771,7 @@ lookup (const struct message *mes, int key) * 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; |