mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[options] OPT_BOOL instead of 0.
This commit is contained in:
parent
894c7a6653
commit
01eccb904b
@ -1294,7 +1294,7 @@ register_options(union option_info info[], struct option *tree)
|
||||
{
|
||||
int i;
|
||||
static const struct option zero = INIT_OPTION(
|
||||
NULL, OPT_ZERO, 0, 0, 0, 0, NULL, NULL);
|
||||
NULL, OPT_ZERO, OPT_BOOL, 0, 0, 0, NULL, NULL);
|
||||
|
||||
/* To let unregister_options() correctly find the end of the
|
||||
* info[] array, this loop must convert every element from
|
||||
|
@ -485,7 +485,7 @@ extern void unregister_options(union option_info info[], struct option *tree);
|
||||
/*! @relates option_info */
|
||||
#define NULL_OPTION_INFO \
|
||||
{{ NULL, NULL, NULL, NULL, OPT_ZERO, \
|
||||
0, 0, 0, 0, NULL, NULL }}
|
||||
OPT_BOOL, 0, 0, 0, NULL, NULL }}
|
||||
|
||||
/*! @relates option_info */
|
||||
#define INIT_OPT_BOOL(path, capt, name, flags, def, desc) \
|
||||
|
Loading…
Reference in New Issue
Block a user