From: Sebastian Harl Date: Thu, 7 Apr 2011 15:37:10 +0000 (+0200) Subject: check_dbi: Include extra opts in help output. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e4e3fec411511b51c1fdf809cfe52512ae53261;p=nagiosplug.git check_dbi: Include extra opts in help output. --- diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c index b52602c..47b239a 100644 --- a/plugins/check_dbi.c +++ b/plugins/check_dbi.c @@ -353,6 +353,11 @@ print_help (void) print_usage (); printf (UT_HELP_VRSN); +/* include this conditionally to avoid 'zero-length printf format string' + * compiler warnings */ +#ifdef NP_EXTRA_OPTS + printf (UT_EXTRA_OPTS); +#endif printf ("\n"); printf (" %s\n", "-d, --driver=STRING");