mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Tidy up and fix some types, prompted by lint via deraadt.
This commit is contained in:
parent
a18a374d51
commit
390472566c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user