diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-11-04 22:42:31 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-11-04 22:42:31 +0000 |
commit | bbad75fb6c7344528c7f631c2daf09a87bab9744 (patch) | |
tree | 48af262594e7f29771a57f1a40b20702821f4b57 /cmd.c | |
parent | a090b78e8d5bf43a92d52e8e24b6566ff542c88e (diff) | |
download | rtmux-bbad75fb6c7344528c7f631c2daf09a87bab9744.tar.gz rtmux-bbad75fb6c7344528c7f631c2daf09a87bab9744.tar.bz2 rtmux-bbad75fb6c7344528c7f631c2daf09a87bab9744.zip |
Sync OpenBSD patchset 483:
Change session and client activity and creation time members to have more
meaningful names.
Also, remove the code to try and update the session activity time for the
command client when a command message is received as is pointless because it
des not have a session.
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: cmd.c,v 1.127 2009-11-02 21:42:27 tcunha Exp $ */ +/* $Id: cmd.c,v 1.128 2009-11-04 22:42:31 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -361,9 +361,9 @@ cmd_newest_session(struct sessions *ss) if ((s = ARRAY_ITEM(ss, i)) == NULL) continue; - if (tv == NULL || timercmp(&s->tv, tv, >)) { + if (tv == NULL || timercmp(&s->creation_time, tv, >)) { snewest = s; - tv = &s->tv; + tv = &s->creation_time; } } @@ -385,9 +385,9 @@ cmd_newest_client(void) if (c->session == NULL) continue; - if (tv == NULL || timercmp(&c->tv, tv, >)) { + if (tv == NULL || timercmp(&c->creation_time, tv, >)) { cnewest = c; - tv = &c->tv; + tv = &c->creation_time; } } |