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:
parent
f55dfad8de
commit
e954286db5
@ -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));
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user