From owner-svn-src-head@FreeBSD.ORG Fri Oct 19 14:29:04 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 64A5DB7E; Fri, 19 Oct 2012 14:29:04 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 329268FC12; Fri, 19 Oct 2012 14:29:04 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9JET4ID012242; Fri, 19 Oct 2012 14:29:04 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9JET361012238; Fri, 19 Oct 2012 14:29:03 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201210191429.q9JET361012238@svn.freebsd.org> From: Ed Schouten Date: Fri, 19 Oct 2012 14:29:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r241736 - in head: sbin/natd usr.bin/logger usr.sbin/syslogd X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2012 14:29:04 -0000 Author: ed Date: Fri Oct 19 14:29:03 2012 New Revision: 241736 URL: http://svn.freebsd.org/changeset/base/241736 Log: Add missing const keywords. Modified: head/sbin/natd/natd.c head/usr.bin/logger/logger.c head/usr.sbin/syslogd/syslogd.c Modified: head/sbin/natd/natd.c ============================================================================== --- head/sbin/natd/natd.c Fri Oct 19 14:00:03 2012 (r241735) +++ head/sbin/natd/natd.c Fri Oct 19 14:29:03 2012 (r241736) @@ -1330,7 +1330,7 @@ static void ParseOption (const char* opt struct in_addr addrValue; int max; char* end; - CODE* fac_record = NULL; + const CODE* fac_record = NULL; /* * Find option from table. */ Modified: head/usr.bin/logger/logger.c ============================================================================== --- head/usr.bin/logger/logger.c Fri Oct 19 14:00:03 2012 (r241735) +++ head/usr.bin/logger/logger.c Fri Oct 19 14:29:03 2012 (r241736) @@ -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)); Modified: head/usr.sbin/syslogd/syslogd.c ============================================================================== --- head/usr.sbin/syslogd/syslogd.c Fri Oct 19 14:00:03 2012 (r241735) +++ head/usr.sbin/syslogd/syslogd.c Fri Oct 19 14:29:03 2012 (r241736) @@ -312,7 +312,7 @@ static void cfline(const char *, struct static const char *cvthname(struct sockaddr *); static void deadq_enter(pid_t, const char *); static int deadq_remove(pid_t); -static int decode(const char *, CODE *); +static int decode(const char *, const CODE *); static void die(int); static void dodie(int); static void dofsync(void); @@ -1123,7 +1123,7 @@ fprintlog(struct filed *f, int flags, co char p_n[5]; /* Hollow laugh */ if (LogFacPri > 1) { - CODE *c; + const CODE *c; for (c = facilitynames; c->c_name; c++) { if (c->c_val == fac) { @@ -2029,9 +2029,9 @@ cfline(const char *line, struct filed *f * Decode a symbolic name to a numeric value */ static int -decode(const char *name, CODE *codetab) +decode(const char *name, const CODE *codetab) { - CODE *c; + const CODE *c; char *p, buf[40]; if (isdigit(*name))