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

"Nagios Plugin Development" <[email protected]> Wed, 4 Jul 2012 22:10:28 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: 07768fa89561a4e55391634942e696a167bc6bbf
 Author: Sebastian Harl <[email protected]>
   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");


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/