Style nits - return (x) not return x.

This commit is contained in:
Nicholas Marriott 2013-01-18 02:10:29 +00:00
parent 3a09e01a8e
commit c2e2107063
2 changed files with 6 additions and 6 deletions

6
cmd.c
View File

@ -378,14 +378,14 @@ cmd_session_better(struct session *s, struct session *best,
int prefer_unattached) int prefer_unattached)
{ {
if (best == NULL) if (best == NULL)
return 1; return (1);
if (prefer_unattached) { if (prefer_unattached) {
if (!(best->flags & SESSION_UNATTACHED) && if (!(best->flags & SESSION_UNATTACHED) &&
(s->flags & SESSION_UNATTACHED)) (s->flags & SESSION_UNATTACHED))
return 1; return (1);
else if ((best->flags & SESSION_UNATTACHED) && else if ((best->flags & SESSION_UNATTACHED) &&
!(s->flags & SESSION_UNATTACHED)) !(s->flags & SESSION_UNATTACHED))
return 0; return (0);
} }
return (timercmp(&s->activity_time, &best->activity_time, >)); return (timercmp(&s->activity_time, &best->activity_time, >));
} }

View File

@ -334,12 +334,12 @@ server_client_assume_paste(struct session *s)
u_int t; u_int t;
if ((t = options_get_number(&s->options, "assume-paste-time")) == 0) if ((t = options_get_number(&s->options, "assume-paste-time")) == 0)
return 0; return (0);
timersub(&s->activity_time, &s->last_activity_time, &tv); timersub(&s->activity_time, &s->last_activity_time, &tv);
if (tv.tv_sec == 0 && tv.tv_usec < t * 1000) if (tv.tv_sec == 0 && tv.tv_usec < t * 1000)
return 1; return (1);
return 0; return (0);
} }
/* Handle data key input from client. */ /* Handle data key input from client. */