1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

[options] OPT_BOOL instead of 0.

This commit is contained in:
Witold Filipczyk 2022-01-24 19:11:06 +01:00
parent 894c7a6653
commit 01eccb904b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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) \