Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 86373 invoked from network); 23 Aug 2005 16:06:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2005 16:06:30 -0000 Received: (qmail 37210 invoked by uid 500); 23 Aug 2005 16:06:29 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 37178 invoked by uid 500); 23 Aug 2005 16:06:29 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 37165 invoked by uid 99); 23 Aug 2005 16:06:29 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 23 Aug 2005 09:06:28 -0700 Received: (qmail 86363 invoked by uid 65534); 23 Aug 2005 16:06:28 -0000 Message-ID: <20050823160628.86362.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r239423 - /httpd/httpd/trunk/modules/generators/mod_cgid.c Date: Tue, 23 Aug 2005 16:06:28 -0000 To: cvs@httpd.apache.org From: asteinmetz@apache.org X-Mailer: svnmailer-1.0.3 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: asteinmetz Date: Tue Aug 23 09:06:24 2005 New Revision: 239423 URL: http://svn.apache.org/viewcvs?rev=239423&view=rev Log: fix 64bit build warnings Modified: httpd/httpd/trunk/modules/generators/mod_cgid.c Modified: httpd/httpd/trunk/modules/generators/mod_cgid.c URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/generators/mod_cgid.c?rev=239423&r1=239422&r2=239423&view=diff ============================================================================== --- httpd/httpd/trunk/modules/generators/mod_cgid.c (original) +++ httpd/httpd/trunk/modules/generators/mod_cgid.c Tue Aug 23 09:06:24 2005 @@ -684,7 +684,7 @@ if (cgid_req.req_type == GETPID_REQ) { pid_t pid; - pid = (pid_t)apr_hash_get(script_hash, &cgid_req.conn_id, sizeof(cgid_req.conn_id)); + pid = (pid_t)((long)apr_hash_get(script_hash, &cgid_req.conn_id, sizeof(cgid_req.conn_id))); if (write(sd2, &pid, sizeof(pid)) != sizeof(pid)) { ap_log_error(APLOG_MARK, APLOG_ERR, 0, main_server, @@ -782,7 +782,7 @@ memcpy(key, &cgid_req.conn_id, sizeof(cgid_req.conn_id)); } apr_hash_set(script_hash, key, sizeof(cgid_req.conn_id), - (void *)procnew->pid); + (void *)((long)procnew->pid)); } } } @@ -1097,7 +1097,7 @@ static apr_status_t close_unix_socket(void *thefd) { - int fd = (int)thefd; + int fd = (int)((long)thefd); return close(fd); } @@ -1140,8 +1140,8 @@ } } else { - apr_pool_cleanup_register(r->pool, (void *)sd, close_unix_socket, - apr_pool_cleanup_null); + apr_pool_cleanup_register(r->pool, (void *)((long)sd), + close_unix_socket, apr_pool_cleanup_null); break; /* we got connected! */ } /* gotta try again, but make sure the cgid daemon is still around */ @@ -1377,7 +1377,7 @@ */ apr_os_pipe_put_ex(&tempsock, &sd, 1, r->pool); - apr_pool_cleanup_kill(r->pool, (void *)sd, close_unix_socket); + apr_pool_cleanup_kill(r->pool, (void *)((long)sd), close_unix_socket); if ((argv0 = strrchr(r->filename, '/')) != NULL) argv0++; @@ -1672,7 +1672,7 @@ * get rid of the cleanup we registered when we created the socket. */ apr_os_pipe_put_ex(&tempsock, &sd, 1, r->pool); - apr_pool_cleanup_kill(r->pool, (void *)sd, close_unix_socket); + apr_pool_cleanup_kill(r->pool, (void *)((long)sd), close_unix_socket); APR_BRIGADE_INSERT_TAIL(bb, apr_bucket_pipe_create(tempsock, f->c->bucket_alloc));