On Mon, Oct 26, 2020 at 8:35 AM Matthew Martin <[email protected]> wrote:

> Recently cclasses in lib/libc/gen/charclass.h was made const.[1]
> Mark the pointer used to walk the array in ksh const as well.
>
> 1: https://marc.info/?l=openbsd-cvs&m=160256416506433&w=2
>

Ugh, I totally missed that reach-around.

ok guenther@



> diff --git misc.c misc.c
> index 9e6e9db5e76..7226f74eccf 100644
> --- misc.c
> +++ misc.c
> @@ -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;
>
>

Reply via email to