From: Graham Leggett Date: Tue, 16 Feb 2010 22:57:00 +0000 (+0000) Subject: Use APR_PID_T_FMT instead of %ld and a cast. X-Git-Tag: 2.3.6~462 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69eeef38cdbf8544337684eab95c1e44dd1a67c8;p=apache Use APR_PID_T_FMT instead of %ld and a cast. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@910747 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/log.c b/server/log.c index 6fd073b812..b0353d8911 100644 --- a/server/log.c +++ b/server/log.c @@ -858,7 +858,7 @@ AP_DECLARE(void) ap_log_pid(apr_pool_t *p, const char *filename) 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; } diff --git a/support/htcacheclean.c b/support/htcacheclean.c index 212192f676..5c6378b68d 100644 --- a/support/htcacheclean.c +++ b/support/htcacheclean.c @@ -974,7 +974,7 @@ int main(int argc, const char * const argv[]) 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) {