if (!current_conn->keptalive) {
/* in some cases we come here before setting the time */
if (log_req->request_time == 0) {
- log_req->request_time = time(0);
+ log_req->request_time = time(NULL);
}
ap_log_transaction(log_req);
}
unsigned int old;
#if defined(WIN32) || defined(NETWARE)
+ time_t now = time(NULL);
#ifdef NETWARE
get_tsd
#endif
old = alarm_expiry_time;
if (old)
- old -= time(0);
+ old -= now;
if (x == 0) {
alarm_fn = NULL;
alarm_expiry_time = 0;
}
else {
alarm_fn = fn;
- alarm_expiry_time = time(NULL) + x;
+ alarm_expiry_time = now + x;
}
#else
if (alarm_fn && x && fn != alarm_fn) {
static void startup_children(int number_to_start)
{
int i;
- time_t now = time(0);
+ time_t now = time(NULL);
for (i = 0; number_to_start && i < ap_daemons_limit; ++i) {
if (ap_scoreboard_image->servers[i].status != SERVER_DEAD) {
int to_kill;
int idle_count;
short_score *ss;
- time_t now = time(0);
+ time_t now = time(NULL);
int free_length;
int free_slots[MAX_SPAWN_RATE];
int last_non_dead;
/* we're still doing a 1-for-1 replacement of dead
* children with new children
*/
- make_child(server_conf, child_slot, time(0));
+ make_child(server_conf, child_slot, time(NULL));
--remaining_children_to_start;
}
#ifndef NO_OTHER_CHILD