Commit a36f125d authored by Jeff Trawick's avatar Jeff Trawick
Browse files

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
parent b129831a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);