diff options
author | 2020-12-30 08:53:30 +0000 | |
---|---|---|
committer | 2020-12-30 08:53:30 +0000 | |
commit | 2df304e38f15196de844bb7861e3fe46a66a8dda (patch) | |
tree | dc980c7df75080d98610b60c7f4bf20999b840b5 /lib/libc/regex/regcomp.c | |
parent | Document meaning of '*' in genrsa output (diff) | |
download | wireguard-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/regcomp.c')
-rw-r--r-- | lib/libc/regex/regcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index 7396cf1dda5..d6df4d83d83 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: regcomp.c,v 1.35 2020/10/13 04:42:28 guenther Exp $ */ +/* $OpenBSD: regcomp.c,v 1.36 2020/12/30 08:53:30 tb Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 Henry Spencer. * Copyright (c) 1992, 1993, 1994 @@ -826,7 +826,7 @@ p_b_coll_elem(struct parse *p, int endc) /* name ended by endc,']' */ { char *sp = p->next; - struct cname *cp; + const struct cname *cp; size_t len; while (MORE() && !SEETWO(endc, ']')) |