summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2020-10-26 18:16:51 +0000
committertb <tb@openbsd.org>2020-10-26 18:16:51 +0000
commit574b77e12692c9df41875fef288906db093c6545 (patch)
tree0e0682b4101048c2f692f275fd36c161a829fc2e /bin
parentsubagentx -> agentx; ok martijn (diff)
downloadwireguard-openbsd-574b77e12692c9df41875fef288906db093c6545.tar.xz
wireguard-openbsd-574b77e12692c9df41875fef288906db093c6545.zip
In lib/libc/gen/charclass.h r1.3 guenther made cclasses const.
Mark the pointer used to walk the array in ksh const as well. From Matthew Martin ok guenther
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/misc.c b/bin/ksh/misc.c
index 9e6e9db5e76..672b5416419 100644
--- a/bin/ksh/misc.c
+++ b/bin/ksh/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.75 2020/07/22 19:20:41 millert Exp $ */
+/* $OpenBSD: misc.c,v 1.76 2020/10/26 18:16:51 tb Exp $ */
/*
* Miscellaneous functions
@@ -713,7 +713,7 @@ do_gmatch(const unsigned char *s, const unsigned char *se,
static int
posix_cclass(const unsigned char *pattern, int test, const unsigned char **ep)
{
- struct cclass *cc;
+ const struct cclass *cc;
const unsigned char *colon;
size_t len;
int rval = 0;