[Nagiosplug-checkins] CVS: nagiosplug/plugins check_pgsql.c,1.1.1.1,1.2
Karl DeBisschop
kdebisschop at users.sourceforge.net
Sun Oct 20 20:41:38 CEST 2002
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv21924/plugins
Modified Files:
check_pgsql.c
Log Message:
now we provide long opts if they do not exist
Index: check_pgsql.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_pgsql.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** check_pgsql.c 28 Feb 2002 06:42:58 -0000 1.1.1.1
--- check_pgsql.c 21 Oct 2002 03:40:06 -0000 1.2
***************
*** 234,244 ****
{
printf ("Usage:\n" " %s %s\n"
- #ifdef HAVE_GETOPT_H
" %s (-h | --help) for detailed help\n"
" %s (-V | --version) for version information\n",
- #else
- " %s -h for detailed help\n"
- " %s -V for version information\n",
- #endif
PROGNAME, OPTIONS, PROGNAME, PROGNAME);
}
--- 234,239 ----
***************
*** 281,285 ****
switch (c) {
! case '?': /* help */
usage2 ("Unknown argument", optarg);
case 'h': /* help */
--- 276,280 ----
switch (c) {
! case '?': /* usage */
usage2 ("Unknown argument", optarg);
case 'h': /* help */
More information about the Commits
mailing list