char *p to const char *p for const-correctness.

This commit is contained in:
dnbaker 2019-02-08 09:32:27 -05:00
parent 5fc2090766
commit 3b16506820
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ static int ketopt(ketopt_t *s, int argc, char *argv[], int permute, const char *
}
}
} else { /* a short option */
char *p;
const char *p;
if (s->pos == 0) s->pos = 1;
opt = s->opt = argv[s->i][s->pos++];
p = strchr(ostr, opt);