From 17b1ca6fc128faadfd4e7d7861be9c11a5ccffcf Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 15 May 2009 09:47:34 -0700 Subject: Allow message tables to be constant Avoid bugs, and improve cache locality by allowing message lists to be read/only. --- lib/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/log.h') 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); -- cgit v1.2.3