aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ide_smart.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ide_smart.c')
-rw-r--r--plugins/check_ide_smart.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index 644dc488..16cd1a87 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -206,9 +206,7 @@ main (int argc, char *argv[])
print_revision (progname, revision);
return STATE_OK;
default:
- printf (_("%s: Unknown argument: %s\n\n"), progname, optarg);
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Unknown argument"), optarg);
}
if (optind < argc) {
@@ -488,7 +486,6 @@ smart_read_thresholds (int fd, thresholds_t * thresholds)
}
-
void
print_help ()
{
@@ -515,7 +512,6 @@ Usage: %s [DEVICE] [OPTION]\n\
}
-
void
print_usage (void)
{