From 26c5df4b1e7b699548290a58d67157602375ac54 Mon Sep 17 00:00:00 2001 From: "Chris West (Faux)" Date: Fri, 23 Mar 2018 16:46:38 +0000 Subject: [PATCH] YESNO options are of type bool, not int --- ircd/getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/getopt.c b/ircd/getopt.c index f7c6c826..ef972a50 100644 --- a/ircd/getopt.c +++ b/ircd/getopt.c @@ -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)