diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-18 20:40:24 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-18 20:40:24 +0200 |
commit | fd67d1e344c579fea0a0499a6700987f3866b0b1 (patch) | |
tree | 806eb40d916583ed18b9ce084061f0a3483e1b48 | |
parent | 6d62fea757873cbfa99d1cbbd97b97ff47da6a8d (diff) | |
download | monitoring-plugins-fd67d1e344c579fea0a0499a6700987f3866b0b1.tar.gz |
check_users: Use C99 booleans
-rw-r--r-- | plugins/check_users.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_users.c b/plugins/check_users.c index 2a9ee986..7cf7a2cc 100644 --- a/plugins/check_users.c +++ b/plugins/check_users.c | |||
@@ -179,7 +179,7 @@ main (int argc, char **argv) | |||
179 | printf (_("USERS %s - %d users currently logged in |%s\n"), | 179 | printf (_("USERS %s - %d users currently logged in |%s\n"), |
180 | state_text(result), users, | 180 | state_text(result), users, |
181 | sperfdata_int("users", users, "", warning_range, | 181 | sperfdata_int("users", users, "", warning_range, |
182 | critical_range, TRUE, 0, FALSE, 0)); | 182 | critical_range, true, 0, false, 0)); |
183 | } | 183 | } |
184 | 184 | ||
185 | return result; | 185 | return result; |
@@ -202,7 +202,7 @@ process_arguments (int argc, char **argv) | |||
202 | if (argc < 2) | 202 | if (argc < 2) |
203 | usage ("\n"); | 203 | usage ("\n"); |
204 | 204 | ||
205 | while (1) { | 205 | while (true) { |
206 | c = getopt_long (argc, argv, "+hVvc:w:", longopts, &option); | 206 | c = getopt_long (argc, argv, "+hVvc:w:", longopts, &option); |
207 | 207 | ||
208 | if (c == -1 || c == EOF || c == 1) | 208 | if (c == -1 || c == EOF || c == 1) |