summaryrefslogtreecommitdiffstats
path: root/arg.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-08-28 17:45:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-08-28 17:45:30 +0000
commit33aa9315414dca1218b3c88b0c5ffc89d4379974 (patch)
tree1594150f11001adb185809b5f593ed4be14f3dbe /arg.c
parent0abb4ca413d3df152a969d5141622771ddc1f9fa (diff)
Support OS X by moving to gettimeofday(2) and adding poll compat from OpenSSH.
Diffstat (limited to 'arg.c')
-rw-r--r--arg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arg.c b/arg.c
index d1bc06d6..a1508528 100644
--- a/arg.c
+++ b/arg.c
@@ -1,4 +1,4 @@
-/* $Id: arg.c,v 1.4 2008-07-23 22:18:06 nicm Exp $ */
+/* $Id: arg.c,v 1.5 2008-08-28 17:45:25 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -46,18 +46,18 @@ struct session *
arg_lookup_session(const char *name)
{
struct session *s, *newest = NULL;
- struct timespec *ts;
+ struct timeval *tv;
u_int i;
- ts = NULL;
+ tv = NULL;
for (i = 0; i < ARRAY_LENGTH(&sessions); i++) {
s = ARRAY_ITEM(&sessions, i);
if (s == NULL || fnmatch(name, s->name, 0) != 0)
continue;
- if (ts == NULL || timespeccmp(&s->ts, ts, >)) {
+ if (tv == NULL || timercmp(&s->tv, tv, >)) {
newest = s;
- ts = &s->ts;
+ tv = &s->tv;
}
}