1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[config] const in help_str

This commit is contained in:
Witold Filipczyk 2022-02-10 19:48:46 +01:00
parent 4118a4dfc5
commit 4bfd00d4db
2 changed files with 3 additions and 3 deletions

View File

@ -508,7 +508,7 @@ print_full_help_inner(struct option *tree, const char *path,
foreach (option, *tree->value.tree) {
enum option_type type = option->type;
char *help;
const char *help;
const char *capt = option->capt;
char *desc = (option->desc && *option->desc)
? (char *) gettext(option->desc)
@ -651,7 +651,7 @@ print_short_help(void)
foreach (option, *cmdline_options->value.tree) {
const char *capt;
char *help;
const char *help;
char *info = saved ? saved->source
: (char *) "";
int len = strlen(option->name);

View File

@ -16,7 +16,7 @@ struct option_type_info {
void (*dup)(struct option *, struct option *, int);
int (*set)(struct option *, char *);
int (*equals)(struct option *, const char *);
char *help_str;
const char *help_str;
};
/* enum option_type is index in this array */