]> jfr.im git - solanum.git/blobdiff - ircd/getopt.c
Resolve shfit/reduce conflict in timespec production (#54)
[solanum.git] / ircd / getopt.c
index f7c6c826c09df73d2d842f3e528a94ad5b1273f2..ef972a50ee963bbfa3f571eab3bf44e962fe43fe 100644 (file)
@@ -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)