aboutsummaryrefslogtreecommitdiff
path: root/plugins-root/check_icmp.c
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.de> 2015-10-04 19:03:50 +0200
committerGravatar Sven Nierlein <sven@nierlein.de> 2015-10-04 19:24:30 +0200
commitbebf1cd050ecb0e23f02353e19125767623bd41f (patch)
treef09e4862c0c4f4f4cb31feb789304feee2e9d79a /plugins-root/check_icmp.c
parentedca257e2032866f6ca63bc540a317574cd89ac8 (diff)
downloadmonitoring-plugins-bebf1cd050ecb0e23f02353e19125767623bd41f.tar.gz
use unknown exit code for help/version in plugins-root as well
Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 'plugins-root/check_icmp.c')
-rw-r--r--plugins-root/check_icmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index f4208371..9ed12ba1 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);
}
}
}