[Nagios-devel] [PATCH] nagios: Changed return code on exit call

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] [PATCH] nagios: Changed return code on exit call

Post by Guest »


=46rom: Ricardo Maraschini

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

---
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, T=
RUE, "Failed to drop privileges. Aborting.");
=20
cleanup();
- exit(ERROR);
+ exit(EXIT_FAILURE);
}
=20
#ifdef USE_EVENT_BROKER
--=20
1.7.4.1





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: ricardo.maraschini@opservices.com.br
Locked