Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 21337 invoked from network); 4 Jun 2007 13:08:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2007 13:08:11 -0000 Received: (qmail 11628 invoked by uid 500); 4 Jun 2007 13:08:14 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 11477 invoked by uid 500); 4 Jun 2007 13:08:14 -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 11466 invoked by uid 99); 4 Jun 2007 13:08:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 06:08:13 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 06:08:09 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 52F471A981A; Mon, 4 Jun 2007 06:07:49 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r544147 - /httpd/httpd/branches/httpd-pid-table/server/mpm_common.c Date: Mon, 04 Jun 2007 13:07:49 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070604130749.52F471A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jim Date: Mon Jun 4 06:07:48 2007 New Revision: 544147 URL: http://svn.apache.org/viewvc?view=rev&rev=544147 Log: Use apr func Modified: httpd/httpd/branches/httpd-pid-table/server/mpm_common.c Modified: httpd/httpd/branches/httpd-pid-table/server/mpm_common.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/httpd-pid-table/server/mpm_common.c?view=diff&rev=544147&r1=544146&r2=544147 ============================================================================== --- httpd/httpd/branches/httpd-pid-table/server/mpm_common.c (original) +++ httpd/httpd/branches/httpd-pid-table/server/mpm_common.c Mon Jun 4 06:07:48 2007 @@ -98,7 +98,7 @@ int ap_in_pid_table(pid_t pid) { char apid[64]; const char *spid; - snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); + apr_snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); spid = apr_table_get(ap_pid_table, apid); if (spid && spid[0] == '1' && spid[1] == '\0') return 1; @@ -112,13 +112,13 @@ void ap_set_pid_table(pid_t pid) { char apid[64]; - snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); + apr_snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); apr_table_set(ap_pid_table, apid, "1"); } void ap_unset_pid_table(pid_t pid) { char apid[64]; - snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); + apr_snprintf(apid, sizeof(apid), "%" APR_PID_T_FMT, pid); apr_table_unset(ap_pid_table, apid); }