From 8e4c09307d9eafbbbf7fbffb3d3483287cea169b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 15 May 2009 09:47:34 -0700 Subject: [cleanup] Allow message tables to be constant Avoid bugs, and improve cache locality by allowing message lists to be read/only. --- lib/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/log.c') diff --git a/lib/log.c b/lib/log.c index f7a36851..8c3e2ddc 100644 --- a/lib/log.c +++ b/lib/log.c @@ -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; -- cgit v1.2.1