diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-15 18:21:31 +0200 |
|---|---|---|
| committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-15 18:21:31 +0200 |
| commit | ddbabaa3b659bed9dcf5c5a2bfc430fb816277c7 (patch) | |
| tree | 0d0980d41f95385cc0137ec86e7a1cea0065e04c /lib/extra_opts.c | |
| parent | 4b9d90f31c700298185aa4c7b20fe1c5e8bf19c2 (diff) | |
| download | monitoring-plugins-ddbabaa3b659bed9dcf5c5a2bfc430fb816277c7.tar.gz | |
Replace all old school booleans in lib witch C99 ones
Diffstat (limited to 'lib/extra_opts.c')
| -rw-r--r-- | lib/extra_opts.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/extra_opts.c b/lib/extra_opts.c index 89b10560..b9843eba 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! */ |
| 29 | int | 29 | bool is_option2 (char *str) |
| 30 | is_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 */ |
