diff options
Diffstat (limited to 'plugins/check_ssh.c')
-rw-r--r-- | plugins/check_ssh.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index e957c053..7b7bc8fd 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
@@ -110,9 +110,7 @@ process_arguments (int argc, char **argv) | |||
110 | 110 | ||
111 | switch (c) { | 111 | switch (c) { |
112 | case '?': /* help */ | 112 | case '?': /* help */ |
113 | printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); | 113 | usage2 (_("Unknown argument"), optarg); |
114 | print_usage (); | ||
115 | exit (STATE_UNKNOWN); | ||
116 | case 'V': /* version */ | 114 | case 'V': /* version */ |
117 | print_revision (progname, revision); | 115 | print_revision (progname, revision); |
118 | exit (STATE_OK); | 116 | exit (STATE_OK); |
@@ -135,7 +133,7 @@ process_arguments (int argc, char **argv) | |||
135 | #ifdef USE_IPV6 | 133 | #ifdef USE_IPV6 |
136 | address_family = AF_INET6; | 134 | address_family = AF_INET6; |
137 | #else | 135 | #else |
138 | usage (_("IPv6 support not available\n")); | 136 | usage4 (_("IPv6 support not available")); |
139 | #endif | 137 | #endif |
140 | break; | 138 | break; |
141 | case 'r': /* remote version */ | 139 | case 'r': /* remote version */ |
@@ -151,11 +149,9 @@ process_arguments (int argc, char **argv) | |||
151 | port = atoi (optarg); | 149 | port = atoi (optarg); |
152 | } | 150 | } |
153 | else { | 151 | else { |
154 | printf ("Port number nust be a positive integer: %s\n", optarg); | 152 | usage2 (_("Port number must be a positive integer"), optarg); |
155 | usage (""); | ||
156 | } | 153 | } |
157 | } | 154 | } |
158 | |||
159 | } | 155 | } |
160 | 156 | ||
161 | c = optind; | 157 | c = optind; |