summaryrefslogtreecommitdiffstats
path: root/lib/log.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-15 09:47:34 -0700
committerPaul Jakma <paul@quagga.net>2009-06-18 20:18:29 +0100
commit8e4c09307d9eafbbbf7fbffb3d3483287cea169b (patch)
treec9b39213248d64fdaa28bc419e77ce1e3866a585 /lib/log.h
parentfc52f95373b1dc0bec5f5a474bafa362b02a63ae (diff)
downloadquagga-8e4c09307d9eafbbbf7fbffb3d3483287cea169b.tar.bz2
quagga-8e4c09307d9eafbbbf7fbffb3d3483287cea169b.tar.xz
[cleanup] 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.h')
-rw-r--r--lib/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log.h b/lib/log.h
index 86097919..2dd1d313 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -151,7 +151,7 @@ extern int zlog_rotate (struct zlog *);
#define LOOKUP(x, y) mes_lookup(x, x ## _max, y, "(no item found)")
extern const char *lookup (const struct message *, int);
-extern const char *mes_lookup (struct message *meslist,
+extern const char *mes_lookup (const struct message *meslist,
int max, int index,
const char *no_item);