summaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-03 20:29:47 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-03 20:29:47 +0000
commit5289da29ba2fdf15413ec94fa7f2838469abccae (patch)
treeaa229c5c632273d18bd8c0f8729994f0c514327f /cmd.c
parentc95f1d1ff951fdfea9057952ecadb25884ba8daa (diff)
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd.c b/cmd.c
index 7ce88f47..ee713a38 100644
--- a/cmd.c
+++ b/cmd.c
@@ -362,9 +362,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;
}
}
@@ -386,9 +386,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;
}
}