summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_game.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/check_game.c b/plugins/check_game.c
index a534b69b..ca126973 100644
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
@@ -53,7 +53,7 @@ char *server_ip;
53char *game_type; 53char *game_type;
54int port = 0; 54int port = 0;
55 55
56int verbose; 56bool verbose = false;
57 57
58int qstat_game_players_max = -1; 58int qstat_game_players_max = -1;
59int qstat_game_players = -1; 59int qstat_game_players = -1;
@@ -90,7 +90,7 @@ main (int argc, char **argv)
90 if (port) 90 if (port)
91 xasprintf (&command_line, "%s:%-d", command_line, port); 91 xasprintf (&command_line, "%s:%-d", command_line, port);
92 92
93 if (verbose > 0) 93 if (verbose)
94 printf ("%s\n", command_line); 94 printf ("%s\n", command_line);
95 95
96 /* run the command. historically, this plugin ignores output on stderr, 96 /* run the command. historically, this plugin ignores output on stderr,
@@ -142,11 +142,11 @@ main (int argc, char **argv)
142 ret[qstat_map_field], 142 ret[qstat_map_field],
143 ret[qstat_ping_field], 143 ret[qstat_ping_field],
144 perfdata ("players", atol(ret[qstat_game_players]), "", 144 perfdata ("players", atol(ret[qstat_game_players]), "",
145 FALSE, 0, FALSE, 0, 145 false, 0, false, 0,
146 TRUE, 0, TRUE, atol(ret[qstat_game_players_max])), 146 true, 0, true, atol(ret[qstat_game_players_max])),
147 fperfdata ("ping", strtod(ret[qstat_ping_field], NULL), "", 147 fperfdata ("ping", strtod(ret[qstat_ping_field], NULL), "",
148 FALSE, 0, FALSE, 0, 148 false, 0, false, 0,
149 TRUE, 0, FALSE, 0)); 149 true, 0, false, 0));
150 } 150 }
151 151
152 return result; 152 return result;
@@ -201,7 +201,7 @@ process_arguments (int argc, char **argv)
201 print_revision (progname, NP_VERSION); 201 print_revision (progname, NP_VERSION);
202 exit (STATE_UNKNOWN); 202 exit (STATE_UNKNOWN);
203 case 'v': /* version */ 203 case 'v': /* version */
204 verbose = TRUE; 204 verbose = true;
205 break; 205 break;
206 case 't': /* timeout period */ 206 case 't': /* timeout period */
207 timeout_interval = atoi (optarg); 207 timeout_interval = atoi (optarg);