httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r544147 - /httpd/httpd/branches/httpd-pid-table/server/mpm_common.c
Date Mon, 04 Jun 2007 13:07:49 GMT
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);
 }
 



Mime
View raw message