1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[options] const capt

This commit is contained in:
Witold Filipczyk 2022-01-29 19:01:57 +01:00
parent 314d1a8d09
commit 3a052556f1
2 changed files with 3 additions and 3 deletions

View File

@ -509,7 +509,7 @@ print_full_help_inner(struct option *tree, char *path,
foreach (option, *tree->value.tree) { foreach (option, *tree->value.tree) {
enum option_type type = option->type; enum option_type type = option->type;
char *help; char *help;
char *capt = option->capt; const char *capt = option->capt;
char *desc = (option->desc && *option->desc) char *desc = (option->desc && *option->desc)
? (char *) gettext(option->desc) ? (char *) gettext(option->desc)
: (char *) "N/A"; : (char *) "N/A";
@ -650,7 +650,7 @@ print_short_help(void)
align[sizeof(align) - 1] = 0; align[sizeof(align) - 1] = 0;
foreach (option, *cmdline_options->value.tree) { foreach (option, *cmdline_options->value.tree) {
char *capt; const char *capt;
char *help; char *help;
char *info = saved ? saved->source char *info = saved ? saved->source
: (char *) ""; : (char *) "";

View File

@ -202,7 +202,7 @@ struct option {
long min, max; long min, max;
union option_value value; union option_value value;
const char *desc; const char *desc;
char *capt; const char *capt;
struct option *root; struct option *root;