[monitoring-plugins] use unknown exit code for help/version in ...

Sven Nierlein git at monitoring-plugins.org
Sun Oct 4 23:50:11 CEST 2015


 Module: monitoring-plugins
 Branch: master
 Commit: bebf1cd050ecb0e23f02353e19125767623bd41f
 Author: Sven Nierlein <sven at nierlein.de>
   Date: Sun Oct  4 19:03:50 2015 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=bebf1cd

use unknown exit code for help/version in plugins-root as well

Signed-off-by: Sven Nierlein <sven at nierlein.de>

---

 plugins-root/check_dhcp.c | 4 ++--
 plugins-root/check_icmp.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index b874c55..3723e61 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -1163,11 +1163,11 @@ int call_getopt(int argc, char **argv){
 
 		case 'V': /* version */
 			print_revision(progname, NP_VERSION);
-			exit(STATE_OK);
+			exit(STATE_UNKNOWN);
 
 		case 'h': /* help */
 			print_help();
-			exit(STATE_OK);
+			exit(STATE_UNKNOWN);
 
 		case 'v': /* verbose */
 			verbose=1;
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index f420837..9ed12ba 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -526,10 +526,10 @@ main(int argc, char **argv)
 				break;
 			case 'V': /* version */
 				print_revision (progname, NP_VERSION);
-				exit (STATE_OK);
+				exit (STATE_UNKNOWN);
 			case 'h': /* help */
 				print_help ();
-				exit (STATE_OK);
+				exit (STATE_UNKNOWN);
 			}
 		}
 	}



More information about the Commits mailing list