diff options
author | ed <ed@FreeBSD.org> | 2012-10-19 14:29:03 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2012-10-19 14:29:03 +0000 |
commit | b1462253851ab8c1f6dde48bb7796b15d3f38253 (patch) | |
tree | a7345c9f98213f79a8cdaba2cea19846c935b45a /usr.sbin/syslogd/syslogd.c | |
parent | 5d9ce2d3e851700677eda4940821e2c569f5cf79 (diff) | |
download | FreeBSD-src-b1462253851ab8c1f6dde48bb7796b15d3f38253.zip FreeBSD-src-b1462253851ab8c1f6dde48bb7796b15d3f38253.tar.gz |
Add missing const keywords.
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 2f42975..fff7e4c 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -312,7 +312,7 @@ static void cfline(const char *, struct filed *, 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, const char *msg) 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, const char *prog, const char *host) * 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)) |