YESNO options are of type bool, not int
This commit is contained in:
parent
fe5fc851aa
commit
26c5df4b1e
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ parseargs(int *argc, char * const **argv, struct lgetopt *opts)
|
||||||
switch (opts[i].argtype)
|
switch (opts[i].argtype)
|
||||||
{
|
{
|
||||||
case YESNO:
|
case YESNO:
|
||||||
*((int *) opts[i].argloc) = 1;
|
*((bool *) opts[i].argloc) = TRUE;
|
||||||
break;
|
break;
|
||||||
case INTEGER:
|
case INTEGER:
|
||||||
if(*argc < 2)
|
if(*argc < 2)
|
||||||
|
|
Loading…
Reference in a new issue