[PATCH] nagios: Changed return code on exit call
Ricardo Jose Maraschini
ricardo.maraschini at opservices.com.br
Wed Nov 28 20:15:40 CET 2012
From: Ricardo Maraschini <ricardo.maraschini at gmail.com>
Changed exit return code from ERROR to EXIT_FAILURE in order to avoid
warnings on compilers that have strict type-value checking rules.
Signed-off-by: Ricardo Maraschini <ricardo.maraschini at opservices.com.br>
---
base/nagios.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/base/nagios.c b/base/nagios.c
index e711bb5..a5603bc 100644
--- a/base/nagios.c
+++ b/base/nagios.c
@@ -478,7 +478,7 @@ int main(int argc, char **argv, char **env) {
logit(NSLOG_PROCESS_INFO | NSLOG_RUNTIME_ERROR | NSLOG_CONFIG_ERROR, TRUE, "Failed to drop privileges. Aborting.");
cleanup();
- exit(ERROR);
+ exit(EXIT_FAILURE);
}
#ifdef USE_EVENT_BROKER
--
1.7.4.1
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
More information about the Developers
mailing list