diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-07 19:23:46 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-07 19:23:46 +0100 |
commit | 6928d9e9ad0eb279ab513e95e802daa43d8409dc (patch) | |
tree | 1130b8fdf005f40b9bd9a70bc1f57018c8e638e3 /plugins | |
parent | 61d3dc00cbba6ab10cb8a181294c120741a34882 (diff) | |
download | monitoring-plugins-6928d9e9ad0eb279ab513e95e802daa43d8409dc.tar.gz |
More local variables, less implicit boolean
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_game.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_game.c b/plugins/check_game.c index d078e4b5..fc1afb42 100644 --- a/plugins/check_game.c +++ b/plugins/check_game.c | |||
@@ -144,7 +144,6 @@ int main(int argc, char **argv) { | |||
144 | #define max_players_field_index 130 | 144 | #define max_players_field_index 130 |
145 | 145 | ||
146 | check_game_config_wrapper process_arguments(int argc, char **argv) { | 146 | check_game_config_wrapper process_arguments(int argc, char **argv) { |
147 | int opt_index = 0; | ||
148 | static struct option long_opts[] = {{"help", no_argument, 0, 'h'}, | 147 | static struct option long_opts[] = {{"help", no_argument, 0, 'h'}, |
149 | {"version", no_argument, 0, 'V'}, | 148 | {"version", no_argument, 0, 'V'}, |
150 | {"verbose", no_argument, 0, 'v'}, | 149 | {"verbose", no_argument, 0, 'v'}, |
@@ -179,7 +178,8 @@ check_game_config_wrapper process_arguments(int argc, char **argv) { | |||
179 | } | 178 | } |
180 | } | 179 | } |
181 | 180 | ||
182 | while (1) { | 181 | int opt_index = 0; |
182 | while (true) { | ||
183 | int option_index = getopt_long(argc, argv, "hVvt:H:P:G:g:p:m:", long_opts, &opt_index); | 183 | int option_index = getopt_long(argc, argv, "hVvt:H:P:G:g:p:m:", long_opts, &opt_index); |
184 | 184 | ||
185 | if (option_index == -1 || option_index == EOF) { | 185 | if (option_index == -1 || option_index == EOF) { |