summaryrefslogtreecommitdiffstats
path: root/lib/extra_opts.c
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-15 16:21:31 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-15 16:21:31 (GMT)
commitddbabaa3b659bed9dcf5c5a2bfc430fb816277c7 (patch)
tree0d0980d41f95385cc0137ec86e7a1cea0065e04c /lib/extra_opts.c
parent4b9d90f31c700298185aa4c7b20fe1c5e8bf19c2 (diff)
downloadmonitoring-plugins-ddbabaa3b659bed9dcf5c5a2bfc430fb816277c7.tar.gz
Replace all old school booleans in lib witch C99 onesrefs/pull/1937/head
Diffstat (limited to 'lib/extra_opts.c')
-rw-r--r--lib/extra_opts.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/extra_opts.c b/lib/extra_opts.c
index 89b1056..b9843eb 100644
--- a/lib/extra_opts.c
+++ b/lib/extra_opts.c
@@ -26,15 +26,14 @@
26#include "extra_opts.h" 26#include "extra_opts.h"
27 27
28/* FIXME: copied from utils.h; we should move a bunch of libs! */ 28/* FIXME: copied from utils.h; we should move a bunch of libs! */
29int 29bool is_option2 (char *str)
30is_option2 (char *str)
31{ 30{
32 if (!str) 31 if (!str)
33 return FALSE; 32 return false;
34 else if (strspn (str, "-") == 1 || strspn (str, "-") == 2) 33 else if (strspn (str, "-") == 1 || strspn (str, "-") == 2)
35 return TRUE; 34 return true;
36 else 35 else
37 return FALSE; 36 return false;
38} 37}
39 38
40/* this is the externally visible function used by plugins */ 39/* this is the externally visible function used by plugins */