aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-05-21 17:32:47 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-05-21 17:32:47 +0000
commitc69ff89710c2a18a3f320b58660154396f12c1ae (patch)
tree041dde1b1c630faca5540b8775f1dd52872b7db9
parenta6882bcc1502a92b7f1384f9f92b606e8b7179d9 (diff)
downloadsrc-c69ff89710c2a18a3f320b58660154396f12c1ae.tar.gz
src-c69ff89710c2a18a3f320b58660154396f12c1ae.zip
syslog.h fails to compile with -Wwrite-strings
PR: 27492 Submitted by: Alexey V. Neyman <avn@any.ru>
Notes
Notes: svn path=/head/; revision=76937
-rw-r--r--sys/sys/syslog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/syslog.h b/sys/sys/syslog.h
index 0858af591113..c14e0241fa01 100644
--- a/sys/sys/syslog.h
+++ b/sys/sys/syslog.h
@@ -68,8 +68,8 @@
/* mark "facility" */
#define INTERNAL_MARK LOG_MAKEPRI((LOG_NFACILITIES<<3), 0)
typedef struct _code {
- char *c_name;
- int c_val;
+ const char *c_name;
+ int c_val;
} CODE;
CODE prioritynames[] = {