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

[config] const in get_option_type_name

This commit is contained in:
Witold Filipczyk 2022-02-21 18:13:26 +01:00
parent f55dfad8de
commit e954286db5
2 changed files with 3 additions and 3 deletions

View File

@ -502,7 +502,7 @@ const struct option_type_info option_types[] = {
{ N_("Folder"), NULL, NULL, NULL, tree_dup, NULL, NULL, "" },
};
char *
const char *
get_option_type_name(enum option_type type)
{
assert(type >= 0 && type < sizeof(option_types)/sizeof(struct option_type_info));

View File

@ -9,7 +9,7 @@ extern "C" {
#endif
struct option_type_info {
char *name;
const char *name;
const char *(*cmdline)(struct option *, char ***, int *);
char *(*read)(struct option *, char **, int *);
void (*write)(struct option *, struct string *);
@ -24,7 +24,7 @@ extern const struct option_type_info option_types[];
extern int commandline;
char *get_option_type_name(enum option_type type);
const char *get_option_type_name(enum option_type type);
#ifdef __cplusplus
}