The semantics of this flag were already a boolean value, so we can use the type
system to more obviously indicate this.
#include <cgraph/cgraph.h>
#include <ingraphs/ingraphs.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <getopt.h>
char **Files;
-int chkOnly;
+bool chkOnly;
static const char useString[] = "Usage: nop [-p?] <files>\n\
-p - check for valid DOT\n\
while ((c = getopt(argc, argv, "p?")) != -1) {
switch (c) {
case 'p':
- chkOnly = 1;
+ chkOnly = true;
break;
case '?':
if (optopt == '\0' || optopt == '?')