]> git.kaiwu.me - klib.git/commitdiff
char *p to const char *p for const-correctness.
authordnbaker <dnb@cs.jhu.edu>
Fri, 8 Feb 2019 14:32:27 +0000 (09:32 -0500)
committerdnbaker <dnb@cs.jhu.edu>
Fri, 8 Feb 2019 14:32:34 +0000 (09:32 -0500)
ketopt.h

index 11638db370491c39c8f70cc00763acde2c6123d5..43b5f4af85c6d5aca93071f772a0954b320c4a67 100644 (file)
--- 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);