From 3b165068203b334a8bddc045783298f55ab292f9 Mon Sep 17 00:00:00 2001 From: dnbaker Date: Fri, 8 Feb 2019 09:32:27 -0500 Subject: [PATCH] char *p to const char *p for const-correctness. --- ketopt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ketopt.h b/ketopt.h index 11638db..43b5f4a 100644 --- a/ketopt.h +++ b/ketopt.h @@ -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);