Merge pull request #260 from FauxFaux/yesno-1
YESNO options are of type bool, not int
This commit is contained in:
commit
258eb31c9c
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