mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
config/options: add_opt() @min and @max parameters have to be long to
match struct option.
(cherry picked from commit c3cf5b9474
)
This commit is contained in:
parent
23f9591a3e
commit
5c125ac0b2
@ -473,7 +473,7 @@ init_option_listbox_item(struct option *option)
|
||||
struct option *
|
||||
add_opt(struct option *tree, unsigned char *path, unsigned char *capt,
|
||||
unsigned char *name, enum option_flags flags, enum option_type type,
|
||||
int min, int max, void *value, unsigned char *desc)
|
||||
long min, long max, void *value, unsigned char *desc)
|
||||
{
|
||||
struct option *option = mem_calloc(1, sizeof(*option));
|
||||
|
||||
|
@ -253,7 +253,7 @@ extern union option_value *get_opt_(struct option *, unsigned char *);
|
||||
|
||||
extern struct option *add_opt(struct option *, unsigned char *, unsigned char *,
|
||||
unsigned char *, enum option_flags, enum option_type,
|
||||
int, int, void *, unsigned char *);
|
||||
long, long, void *, unsigned char *);
|
||||
|
||||
/* Hack which permit to disable option descriptions, to reduce elinks binary size.
|
||||
* It may of some use for people wanting a very small static non-i18n elinks binary,
|
||||
|
Loading…
Reference in New Issue
Block a user