fielding 98/09/14 18:19:35
Modified: src/main http_main.c
Log:
Fix gcc warning on Solaris --> pid_t and %d don't match.
Revision Changes Path
1.391 +4 -3 apache-1.3/src/main/http_main.c
Index: http_main.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v
retrieving revision 1.390
retrieving revision 1.391
diff -u -r1.390 -r1.391
--- http_main.c 1998/09/15 00:15:19 1.390
+++ http_main.c 1998/09/15 01:19:32 1.391
@@ -4294,9 +4294,10 @@
const char *pidfile = NULL;
pidfile = ap_server_root_relative (pconf, ap_pid_fname);
if ( pidfile != NULL && unlink(pidfile) == 0)
- ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO,
server_conf,
- "httpd: removed PID file %s (pid=%d)",
- pidfile, getpid());
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO,
+ server_conf,
+ "httpd: removed PID file %s (pid=%ld)",
+ pidfile, (long)getpid());
}
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, server_conf,