From: Jeff Trawick Date: Wed, 22 Dec 2004 14:22:33 +0000 (+0000) Subject: fix warning on systems where pid_t is long X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35ca1718a2c5a7b80b5a25c54289b318ded6c14a;p=thirdparty%2Fapache%2Fhttpd.git fix warning on systems where pid_t is long 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 --- diff --git a/src/modules/standard/mod_log_forensic.c b/src/modules/standard/mod_log_forensic.c index 56cf33d5339..14b9ff193c8 100644 --- a/src/modules/standard/mod_log_forensic.c +++ b/src/modules/standard/mod_log_forensic.c @@ -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);