summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/cname.h
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2020-12-30 08:53:30 +0000
committertb <tb@openbsd.org>2020-12-30 08:53:30 +0000
commit2df304e38f15196de844bb7861e3fe46a66a8dda (patch)
treedc980c7df75080d98610b60c7f4bf20999b840b5 /lib/libc/regex/cname.h
parentDocument meaning of '*' in genrsa output (diff)
downloadwireguard-openbsd-2df304e38f15196de844bb7861e3fe46a66a8dda.tar.xz
wireguard-openbsd-2df304e38f15196de844bb7861e3fe46a66a8dda.zip
Constify the strings in cnames[]. No functional change.
from miod, ok millert
Diffstat (limited to 'lib/libc/regex/cname.h')
-rw-r--r--lib/libc/regex/cname.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/regex/cname.h b/lib/libc/regex/cname.h
index 9cce44e4fc3..667cb54060f 100644
--- a/lib/libc/regex/cname.h
+++ b/lib/libc/regex/cname.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cname.h,v 1.5 2003/06/02 20:18:36 millert Exp $ */
+/* $OpenBSD: cname.h,v 1.6 2020/12/30 08:53:30 tb Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
@@ -36,8 +36,8 @@
*/
/* character-name table */
-static struct cname {
- char *name;
+static const struct cname {
+ const char *name;
char code;
} cnames[] = {
{ "NUL", '\0' },