Code

check_dbi: Include extra opts in help output.
authorSebastian Harl <sh@teamix.net>
Thu, 7 Apr 2011 15:37:10 +0000 (17:37 +0200)
committerSebastian Harl <sh@teamix.net>
Thu, 7 Apr 2011 15:37:10 +0000 (17:37 +0200)
plugins/check_dbi.c

index b52602c4a2753958fd71d8384c0f12341e532702..47b239a9314786a61de4e4d1051a14649dfa45ba 100644 (file)
@@ -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");