[icinga-checkins] icinga.org: icinga2/feature/check_nscp-12874: Fix compiler error

git at icinga.org git at icinga.org
Fri Oct 14 15:54:39 CEST 2016


Module: icinga2
Branch: feature/check_nscp-12874
Commit: 81e7189c09a4489da74701ab8e077fda7b575673
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=81e7189c09a4489da74701ab8e077fda7b575673

Author: Jean Flach <jean-marcel.flach at netways.de>
Date:   Fri Oct 14 15:12:26 2016 +0200

Fix compiler error

VS allows void main

refs #12874

---

 plugins/check_nscp.cpp |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/plugins/check_nscp.cpp b/plugins/check_nscp.cpp
index 150f047..2085ef5 100644
--- a/plugins/check_nscp.cpp
+++ b/plugins/check_nscp.cpp
@@ -177,7 +177,7 @@ static int FormatOutput(const Dictionary::Ptr& result)
 	return creturn;
 }
 
-void main(int argc, char **argv)
+int main(int argc, char **argv)
 {
 	po::variables_map vm;
 	po::options_description desc("Options");
@@ -246,4 +246,5 @@ void main(int argc, char **argv)
 	    vm["passwd"].as<String>(), endpoint);
 
 	Application::Exit(FormatOutput(result));
-}
\ No newline at end of file
+	return 255;
+}



More information about the icinga-checkins mailing list