diff options
Diffstat (limited to 'plugins/check_pgsql.c')
-rw-r--r-- | plugins/check_pgsql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index a2fd90e0..98c504fa 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c | |||
@@ -266,17 +266,17 @@ process_arguments (int argc, char **argv) | |||
266 | 266 | ||
267 | while (1) { | 267 | while (1) { |
268 | #ifdef HAVE_GETOPT_H | 268 | #ifdef HAVE_GETOPT_H |
269 | c = getopt_long (argc, argv, "+?hVt:c:w:H:P:d:l:p:a:", | 269 | c = getopt_long (argc, argv, "hVt:c:w:H:P:d:l:p:a:", |
270 | long_options, &option_index); | 270 | long_options, &option_index); |
271 | #else | 271 | #else |
272 | c = getopt (argc, argv, "+?hVt:c:w:H:P:d:l:p:a:"); | 272 | c = getopt (argc, argv, "hVt:c:w:H:P:d:l:p:a:"); |
273 | #endif | 273 | #endif |
274 | if (c == EOF) | 274 | if (c == EOF) |
275 | break; | 275 | break; |
276 | 276 | ||
277 | switch (c) { | 277 | switch (c) { |
278 | case '?': /* usage */ | 278 | case '?': /* usage */ |
279 | usage2 ("Unknown argument", optarg); | 279 | usage3 ("Unknown argument", optopt); |
280 | case 'h': /* help */ | 280 | case 'h': /* help */ |
281 | print_help (); | 281 | print_help (); |
282 | exit (STATE_OK); | 282 | exit (STATE_OK); |