diff --git a/src/config/cmdline.c b/src/config/cmdline.c index 3e848af27..0f441c1e5 100644 --- a/src/config/cmdline.c +++ b/src/config/cmdline.c @@ -238,7 +238,7 @@ enum remote_method_enum { }; struct remote_method { - char *name; + const char *name; enum remote_method_enum type; }; @@ -353,7 +353,7 @@ remote_cmd(struct option *o, char ***argv, int *argc) } while (*arg); for (method = 0; remote_methods[method].name; method++) { - char *name = remote_methods[method].name; + const char *name = remote_methods[method].name; if (!c_strlcasecmp(command, len, name, -1)) break;