From 39893d565a6c4b948fc0ba1b8c22ee1d57f2aaa4 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Fri, 19 Oct 2012 14:29:03 +0000 Subject: Add missing const keywords. --- usr.bin/logger/logger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/logger') diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c index d3c4786d8cab..49360f4a050f 100644 --- a/usr.bin/logger/logger.c +++ b/usr.bin/logger/logger.c @@ -57,7 +57,7 @@ __FBSDID("$FreeBSD$"); #define SYSLOG_NAMES #include -static int decode(char *, CODE *); +static int decode(char *, const CODE *); static int pencode(char *); static void logmessage(int, const char *, const char *, const char *, const char *); @@ -271,9 +271,9 @@ pencode(char *s) } static int -decode(char *name, CODE *codetab) +decode(char *name, const CODE *codetab) { - CODE *c; + const CODE *c; if (isdigit(*name)) return (atoi(name)); -- cgit v1.2.3