]> granicus.if.org Git - apache/commitdiff
Remove some warnings from the latest compile. I don't know why these
authorRyan Bloom <rbb@apache.org>
Wed, 5 Jul 2000 18:01:52 +0000 (18:01 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 5 Jul 2000 18:01:52 +0000 (18:01 +0000)
haven't turned up before.  We were using the wrong types in our printf
calls for times.

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

modules/http/http_protocol.c
modules/loggers/mod_log_config.c
server/mpm/dexter/dexter.c
server/mpm/mpmt_pthread/mpm.h
server/mpm/mpmt_pthread/mpmt_pthread.c

index 4fd5608370a86e890318e3aa3834282541f56c23..ea4bcdf9e1a2db5590121fd04b32bf7fa994330f 100644 (file)
@@ -302,7 +302,7 @@ API_EXPORT(int) ap_set_byterange(request_rec *r)
         long tlength = 0;
 
         r->byterange = 2;
-        r->boundary = ap_psprintf(r->pool, "%lx%lx",
+        r->boundary = ap_psprintf(r->pool, "%llx%lx",
                                r->request_time, (long) getpid());
         while (internal_byterange(0, &tlength, r, &r_range, NULL, NULL));
         ap_table_setn(r->headers_out, "Content-Length",
@@ -1309,7 +1309,7 @@ API_EXPORT(void) ap_note_digest_auth_failure(request_rec *r)
 {
     ap_table_setn(r->err_headers_out,
            r->proxyreq ? "Proxy-Authenticate" : "WWW-Authenticate",
-           ap_psprintf(r->pool, "Digest realm=\"%s\", nonce=\"%lu\"",
+           ap_psprintf(r->pool, "Digest realm=\"%s\", nonce=\"%llx\"",
                ap_auth_name(r), r->request_time));
 }
 
index 026590647c8b05769c9d398aa08481a9dca7602e..10bd9d1035b3e058da440bad59faf1416aa787ac 100644 (file)
@@ -432,7 +432,7 @@ static const char *log_request_time(request_rec *r, char *a)
 
 static const char *log_request_duration(request_rec *r, char *a)
 {
-    return ap_psprintf(r->pool, "%ld", (ap_now() - r->request_time) / AP_USEC_PER_SEC);
+    return ap_psprintf(r->pool, "%lld", (ap_now() - r->request_time) / AP_USEC_PER_SEC);
 }
 
 /* These next two routines use the canonical name:port so that log
index a5618426b6ee4608847cc08d0fce866692658ae0..6545eaa565f7e2f77db6333a94fb15f79309c8e6 100644 (file)
@@ -151,8 +151,8 @@ static ap_pool_t *thread_pool_parent; /* Parent of per-thread pools */
 static pthread_mutex_t thread_pool_parent_mutex;
 
 static int child_num;
-static int my_pid; /* Linux getpid() doesn't work except in main thread. Use
-                      this instead */
+static unsigned int my_pid; /* Linux getpid() doesn't work except in 
+                      main thread. Use this instead */
 /* Keep track of the number of worker threads currently active */
 static int worker_thread_count;
 static pthread_mutex_t worker_thread_count_mutex;
@@ -1087,7 +1087,7 @@ int ap_mpm_run(ap_pool_t *_pconf, ap_pool_t *plog, server_rec *s)
     ap_log_pid(pconf, ap_pid_fname);
 
     /* Initialize cross-process accept lock */
-    lock_fname = ap_psprintf(_pconf, "%s.%lu",
+    lock_fname = ap_psprintf(_pconf, "%s.%u",
                              ap_server_root_relative(_pconf, lock_fname),
                              my_pid);
     rv = SAFE_ACCEPT(ap_create_lock(&process_accept_mutex, APR_MUTEX,
index 455e3c5545d89d496c7477dfd6a35d55c85db306..c9319c03eb966f01a5fa50b59e7d7e47ab93051a 100644 (file)
@@ -67,7 +67,7 @@ extern int ap_threads_per_child;
 extern int ap_max_requests_per_child;
 extern int ap_extended_status;
 extern int ap_max_daemons_limit;
-extern int ap_my_pid;
+extern unsigned int ap_my_pid;
 extern server_rec *ap_server_conf;
 extern scoreboard *ap_scoreboard_image;
 extern void clean_child_exit(int);
index e351537c1b9517efcc0767f152b4382dfe1fb992..f036c469bf994b71c152dbf95b408017b6f6a2e1 100644 (file)
@@ -151,8 +151,8 @@ int raise_sigstop_flags;
 static ap_pool_t *pconf;               /* Pool for config stuff */
 static ap_pool_t *pchild;              /* Pool for httpd child stuff */
 
-int ap_my_pid; /* Linux getpid() doesn't work except in main thread. Use
-                      this instead */
+unsigned int ap_my_pid; /* Linux getpid() doesn't work except in main 
+                           thread. Use this instead */
 /* Keep track of the number of worker threads currently active */
 static int worker_thread_count;
 static pthread_mutex_t worker_thread_count_mutex;
@@ -1110,7 +1110,7 @@ int ap_mpm_run(ap_pool_t *_pconf, ap_pool_t *plog, server_rec *s)
     ap_log_pid(pconf, ap_pid_fname);
 
     /* Initialize cross-process accept lock */
-    lock_fname = ap_psprintf(_pconf, "%s.%lu",
+    lock_fname = ap_psprintf(_pconf, "%s.%u",
                              ap_server_root_relative(_pconf, lock_fname),
                              ap_my_pid);
     rv = ap_create_lock(&process_accept_mutex, APR_MUTEX, APR_CROSS_PROCESS,