dirkx 99/08/08 06:31:51
Modified: src/main http_main.c
Log:
Warning on *BSD, Solaris (uid_t <-> int) on printf.
Revision Changes Path
1.469 +2 -2 apache-1.3/src/main/http_main.c
Index: http_main.c
===================================================================
RCS file: /x3/home/cvs/apache-1.3/src/main/http_main.c,v
retrieving revision 1.468
retrieving revision 1.469
diff -u -r1.468 -r1.469
--- http_main.c 1999/08/08 12:05:13 1.468
+++ http_main.c 1999/08/08 13:31:50 1.469
@@ -3700,7 +3700,7 @@
#endif
setuid(ap_user_id) == -1)) {
ap_log_error(APLOG_MARK, APLOG_ALERT, server_conf,
- "setuid: unable to change to uid: %d", ap_user_id);
+ "setuid: unable to change to uid: %d", (int) ap_user_id);
clean_child_exit(APEXIT_CHILDFATAL);
}
#endif
@@ -4885,7 +4885,7 @@
/* Only try to switch if we're running as root */
if (!geteuid() && setuid(ap_user_id) == -1) {
ap_log_error(APLOG_MARK, APLOG_ALERT, server_conf,
- "setuid: unable to change to uid: %d", ap_user_id);
+ "setuid: unable to change to uid: %d", (int)
ap_user_id);
exit(1);
}
#endif