[nagiosplug] check_dbi: Include extra opts in help output.

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Thu Jul 5 00:10:28 CEST 2012


 Module: nagiosplug
 Branch: master
 Commit: 07768fa89561a4e55391634942e696a167bc6bbf
 Author: Sebastian Harl <sh at teamix.net>
   Date: Thu Apr  7 17:37:10 2011 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=07768fa

check_dbi: Include extra opts in help output.

---

 plugins/check_dbi.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

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");





More information about the Commits mailing list