mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[cmdline] remote_methods const char *
This commit is contained in:
parent
59f00b6545
commit
0563cf3418
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user