]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence: warning: format not a string literal and no format arguments
authorMark Andrews <marka@isc.org>
Fri, 14 Jan 2011 00:45:40 +0000 (00:45 +0000)
committerMark Andrews <marka@isc.org>
Fri, 14 Jan 2011 00:45:40 +0000 (00:45 +0000)
bin/tests/log_test.c

index 6618295e83d3c835e9058dbb518152c076b210cf..827267e1306f4b26b5dc4a2622452c98d9ed0ba0 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: log_test.c,v 1.24 2004/03/05 04:58:38 marka Exp $ */
+/* $Id: log_test.c,v 1.24.18.1 2011/01/14 00:45:40 marka Exp $ */
 
 /* Principal Authors: DCL */
 
@@ -306,16 +306,16 @@ main(int argc, char **argv) {
        isc_log_write1(lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_RBTDB,
                       ISC_LOG_CRITICAL, "%s", message);
        isc_log_write1(lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_RBTDB,
-                      ISC_LOG_CRITICAL, message);
+                      ISC_LOG_CRITICAL, "%s", message);
 
        isc_log_setduplicateinterval(lcfg, 1);
        message = "This message should appear twice on stderr";
 
        isc_log_write1(lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_RBTDB,
-                      ISC_LOG_CRITICAL, message);
+                      ISC_LOG_CRITICAL, "%s", message);
        sleep(2);
        isc_log_write1(lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_RBTDB,
-                      ISC_LOG_CRITICAL, message);
+                      ISC_LOG_CRITICAL, "%s", message);
 
        /*
         * Review where everything went.