diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-09 03:39:35 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-09 03:39:35 +0000 |
commit | 731426203c88b76255492ad69138e6ecc7b0c7b5 (patch) | |
tree | 5e3c65a22a5a5d051ca72f5e17a73784e6032041 /plugins/negate.c | |
parent | d3af657e468065dcbae73e6a7289f7090822bacd (diff) | |
download | monitoring-plugins-731426203c88b76255492ad69138e6ecc7b0c7b5.tar.gz |
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
Diffstat (limited to 'plugins/negate.c')
-rw-r--r-- | plugins/negate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/negate.c b/plugins/negate.c index a11558d5..c76f5ca0 100644 --- a/plugins/negate.c +++ b/plugins/negate.c @@ -234,17 +234,17 @@ process_arguments (int argc, char **argv) while (1) { #ifdef HAVE_GETOPT_H - c = getopt_long (argc, argv, "+?hVt:", + c = getopt_long (argc, argv, "hVt:", long_options, &option_index); #else - c = getopt (argc, argv, "+?hVt:"); + c = getopt (argc, argv, "hVt:"); #endif if (c == -1 || c == EOF) break; switch (c) { case '?': /* help */ - usage2 ("Unknown argument", optarg); + usage3 ("Unknown argument", optopt); case 'h': /* help */ print_help (); exit (EXIT_SUCCESS); |