util/OptionParser: make string pointers "const"

This commit is contained in:
Max Kellermann
2018-01-16 10:17:09 +01:00
parent 36a6405e8b
commit 4a304bf34e
2 changed files with 6 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ bool
OptionParser::ParseNext() noexcept
{
assert(HasEntries());
char *arg = *argv;
const char *arg = *argv;
++argv;
--argc;
if (arg[0] == '-') {