From bb32ecb79c6e4d7161f0bee54e4197fca64d23d6 Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Sat, 22 Sep 2007 17:48:33 +0000 Subject: substituted bool/true/false with int/TRUE/FALSE (discussed on np-devel) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1787 f882894a-f735-0410-b71e-b25c423dba1c --- lib/utils_disk.c | 4 ++-- lib/utils_tcp.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/utils_disk.c b/lib/utils_disk.c index 3f9c8a9a..9324f5f3 100644 --- a/lib/utils_disk.c +++ b/lib/utils_disk.c @@ -181,9 +181,9 @@ np_regex_match_mount_entry (struct mount_entry* me, regex_t* re) { if (regexec(re, me->me_devname, (size_t) 0, NULL, 0) == 0 || regexec(re, me->me_mountdir, (size_t) 0, NULL, 0) == 0 ) { - return true; + return TRUE; } else { - return false; + return FALSE; } } diff --git a/lib/utils_tcp.c b/lib/utils_tcp.c index b7075197..2fefaf3c 100644 --- a/lib/utils_tcp.c +++ b/lib/utils_tcp.c @@ -52,9 +52,9 @@ np_expect_match(char* status, char** server_expect, int expect_count, int all, i } else if(verbose) puts("couldn't find it"); } - if ((all == true && match == expect_count) || + if ((all == TRUE && match == expect_count) || (! all && match >= 1)) { - return true; + return TRUE; } else - return false; + return FALSE; } -- cgit v1.2.3-74-g34f1