httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r910747 - in /httpd/httpd/trunk: server/log.c support/htcacheclean.c
Date Tue, 16 Feb 2010 22:57:01 GMT
Author: minfrin
Date: Tue Feb 16 22:57:00 2010
New Revision: 910747

URL: http://svn.apache.org/viewvc?rev=910747&view=rev
Log:
Use APR_PID_T_FMT instead of %ld and a cast.

Modified:
    httpd/httpd/trunk/server/log.c
    httpd/httpd/trunk/support/htcacheclean.c

Modified: httpd/httpd/trunk/server/log.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/log.c?rev=910747&r1=910746&r2=910747&view=diff
==============================================================================
--- httpd/httpd/trunk/server/log.c (original)
+++ httpd/httpd/trunk/server/log.c Tue Feb 16 22:57:00 2010
@@ -858,7 +858,7 @@
                      ap_server_argv0, fname);
         exit(1);
     }
-    apr_file_printf(pid_file, "%ld" APR_EOL_STR, (long)mypid);
+    apr_file_printf(pid_file, "%" APR_PID_T_FMT APR_EOL_STR, mypid);
     apr_file_close(pid_file);
     saved_pid = mypid;
 }

Modified: httpd/httpd/trunk/support/htcacheclean.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/htcacheclean.c?rev=910747&r1=910746&r2=910747&view=diff
==============================================================================
--- httpd/httpd/trunk/support/htcacheclean.c (original)
+++ httpd/httpd/trunk/support/htcacheclean.c Tue Feb 16 22:57:00 2010
@@ -974,7 +974,7 @@
         if (APR_SUCCESS == (status = apr_file_open(&file, pidfile, APR_WRITE
                 | APR_CREATE | APR_TRUNCATE,
                 APR_UREAD | APR_UWRITE | APR_GREAD, pool))) {
-            apr_file_printf(file, "%ld" APR_EOL_STR, (long) mypid);
+            apr_file_printf(file, "%" APR_PID_T_FMT APR_EOL_STR, mypid);
             apr_file_close(file);
         }
         else if (!isdaemon) {



Mime
View raw message