From 6b157a67c296e5f651ba2025acddd2f967b45929 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 1 Aug 2008 18:11:20 -0700 Subject: Make log message lookup function use const tables Message tables should be unaltered. --- lib/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/log.c') diff --git a/lib/log.c b/lib/log.c index df630099..09ddfb29 100644 --- a/lib/log.c +++ b/lib/log.c @@ -740,9 +740,9 @@ zlog_rotate (struct zlog *zl) /* Message lookup function. */ const char * -lookup (struct message *mes, int key) +lookup (const struct message *mes, int key) { - struct message *pnt; + const struct message *pnt; for (pnt = mes; pnt->key != 0; pnt++) if (pnt->key == key) -- cgit v1.2.3