Tidy up and fix some types, prompted by lint via deraadt.

pull/1/head
Nicholas Marriott 2009-11-13 18:13:18 +00:00
parent a18a374d51
commit 390472566c
1 changed files with 6 additions and 3 deletions

View File

@ -197,7 +197,9 @@ server_client_status_timer(void)
struct session *s;
struct job *job;
struct timeval tv;
u_int i, interval;
u_int i;
int interval;
time_t difference;
if (gettimeofday(&tv, NULL) != 0)
fatal("gettimeofday failed");
@ -220,9 +222,10 @@ server_client_status_timer(void)
continue;
interval = options_get_number(&s->options, "status-interval");
if (tv.tv_sec - c->status_timer.tv_sec >= interval) {
difference = tv.tv_sec - c->status_timer.tv_sec;
if (difference >= interval) {
RB_FOREACH(job, jobs, &c->status_jobs)
job_run(job);
job_run(job);
c->flags |= CLIENT_STATUS;
}
}