diff options
author | Ed Schouten <ed@FreeBSD.org> | 2012-10-19 14:29:03 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2012-10-19 14:29:03 +0000 |
commit | 39893d565a6c4b948fc0ba1b8c22ee1d57f2aaa4 (patch) | |
tree | a7345c9f98213f79a8cdaba2cea19846c935b45a /usr.bin/logger | |
parent | 32fe38f123ab5e9db2749917ec71753aef4a49f1 (diff) | |
download | src-39893d565a6c4b948fc0ba1b8c22ee1d57f2aaa4.tar.gz src-39893d565a6c4b948fc0ba1b8c22ee1d57f2aaa4.zip |
Add missing const keywords.
Notes
Notes:
svn path=/head/; revision=241736
Diffstat (limited to 'usr.bin/logger')
-rw-r--r-- | usr.bin/logger/logger.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <syslog.h> -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)); |