mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
config/options: add_opt() @min and @max parameters have to be long to
match struct option.
This commit is contained in:
parent
5b84173b99
commit
c3cf5b9474
@ -445,7 +445,7 @@ init_option_listbox_item(struct option *option)
|
|||||||
struct option *
|
struct option *
|
||||||
add_opt(struct option *tree, unsigned char *path, unsigned char *capt,
|
add_opt(struct option *tree, unsigned char *path, unsigned char *capt,
|
||||||
unsigned char *name, enum option_flags flags, enum option_type type,
|
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));
|
struct option *option = mem_calloc(1, sizeof(*option));
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ extern union option_value *get_opt_(struct option *, unsigned char *);
|
|||||||
|
|
||||||
extern struct option *add_opt(struct option *, unsigned char *, unsigned char *,
|
extern struct option *add_opt(struct option *, unsigned char *, unsigned char *,
|
||||||
unsigned char *, enum option_flags, enum option_type,
|
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.
|
/* 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,
|
* It may of some use for people wanting a very small static non-i18n elinks binary,
|
||||||
|
Loading…
Reference in New Issue
Block a user