]> granicus.if.org Git - apache/commitdiff
cppCheck: kill two warnings about incorrect printf parameters.
authorChristophe Jaillet <jailletc36@apache.org>
Mon, 5 Nov 2012 21:50:50 +0000 (21:50 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Mon, 5 Nov 2012 21:50:50 +0000 (21:50 +0000)
'worker_thread_count' is unsigned

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1405973 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/netware/mpm_netware.c

index 77840492d4c6ab04d4dfdb47393e8860c9907261..6b049c9816bd380fcaa66eaff8034653a7924a98 100644 (file)
@@ -942,7 +942,7 @@ static int netware_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
             "caught SIGTERM, shutting down");
 
         while (worker_thread_count > 0) {
-            printf ("\rShutdown pending. Waiting for %d thread(s) to terminate...",
+            printf ("\rShutdown pending. Waiting for %u thread(s) to terminate...",
                     worker_thread_count);
             apr_thread_yield();
         }
@@ -963,7 +963,7 @@ static int netware_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
 
         /* Wait for all of the threads to terminate before initiating the restart */
         while (worker_thread_count > 0) {
-            printf ("\rRestart pending. Waiting for %d thread(s) to terminate...",
+            printf ("\rRestart pending. Waiting for %u thread(s) to terminate...",
                     worker_thread_count);
             apr_thread_yield();
         }