From 731426203c88b76255492ad69138e6ecc7b0c7b5 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Sat, 9 Nov 2002 03:39:35 +0000 Subject: define and use usage3 where second part of message is a an int/char git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@178 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_pgsql.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/check_pgsql.c') 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) while (1) { #ifdef HAVE_GETOPT_H - c = getopt_long (argc, argv, "+?hVt:c:w:H:P:d:l:p:a:", + c = getopt_long (argc, argv, "hVt:c:w:H:P:d:l:p:a:", long_options, &option_index); #else - c = getopt (argc, argv, "+?hVt:c:w:H:P:d:l:p:a:"); + c = getopt (argc, argv, "hVt:c:w:H:P:d:l:p:a:"); #endif if (c == EOF) break; switch (c) { case '?': /* usage */ - usage2 ("Unknown argument", optarg); + usage3 ("Unknown argument", optopt); case 'h': /* help */ print_help (); exit (STATE_OK); -- cgit v1.2.3-74-g34f1