Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #260 from FauxFaux/yesno-1
Browse files Browse the repository at this point in the history
YESNO options are of type bool, not int
  • Loading branch information
nomis authored Aug 12, 2018
2 parents 82546fb + 26c5df4 commit 258eb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ircd/getopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ parseargs(int *argc, char * const **argv, struct lgetopt *opts)
switch (opts[i].argtype)
{
case YESNO:
*((int *) opts[i].argloc) = 1;
*((bool *) opts[i].argloc) = TRUE;
break;
case INTEGER:
if(*argc < 2)
Expand Down

0 comments on commit 258eb31

Please sign in to comment.