From fd67d1e344c579fea0a0499a6700987f3866b0b1 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 18 Oct 2023 20:40:24 +0200 Subject: check_users: Use C99 booleans diff --git a/plugins/check_users.c b/plugins/check_users.c index 2a9ee98..7cf7a2c 100644 --- a/plugins/check_users.c +++ b/plugins/check_users.c @@ -179,7 +179,7 @@ main (int argc, char **argv) printf (_("USERS %s - %d users currently logged in |%s\n"), state_text(result), users, sperfdata_int("users", users, "", warning_range, - critical_range, TRUE, 0, FALSE, 0)); + critical_range, true, 0, false, 0)); } return result; @@ -202,7 +202,7 @@ process_arguments (int argc, char **argv) if (argc < 2) usage ("\n"); - while (1) { + while (true) { c = getopt_long (argc, argv, "+hVvc:w:", longopts, &option); if (c == -1 || c == EOF || c == 1) -- cgit v0.10-9-g596f