From: dnbaker Date: Fri, 8 Feb 2019 14:32:27 +0000 (-0500) Subject: char *p to const char *p for const-correctness. X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=3b165068203b334a8bddc045783298f55ab292f9;p=klib.git char *p to const char *p for const-correctness. --- 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);