]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix warning on systems where pid_t is long
authorJeff Trawick <trawick@apache.org>
Wed, 22 Dec 2004 14:22:33 +0000 (14:22 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 22 Dec 2004 14:22:33 +0000 (14:22 +0000)
reviewed by: nd, jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@123093 13f79535-47bb-0310-9956-ffa450edef68

src/modules/standard/mod_log_forensic.c

index 56cf33d5339fc029c5361d8126ee924aeb4679fe..14b9ff193c8927331ef4bf29d42c44cfe9b2befa 100644 (file)
@@ -189,7 +189,8 @@ static int log_before(request_rec *r)
     if (!(id = ap_table_get(r->subprocess_env, "UNIQUE_ID"))) {
         /* we make the assumption that we can't go through all the PIDs in
            under 1 second */
-        id = ap_psprintf(r->pool, "%x:%lx:%x", getpid(), time(NULL), next_id++);
+        id = ap_psprintf(r->pool, "%lx:%lx:%x", (long)getpid(), time(NULL),
+                         next_id++);
     }
     rcfg.id = id;
     ap_set_module_config(r->request_config, &log_forensic_module, &rcfg);