diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-19 22:13:54 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-19 22:13:54 +0100 |
commit | 771f49d2ccbe999060fdd7121c5a16439d0c9d94 (patch) | |
tree | d6cff6a880190623d15e560b693765262b4bf3f1 /hurd | |
parent | f55e175e0d21c9b239ce968ed8822158a4660648 (diff) |
Use '[0].' instead of frownprone '->'
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/hurdselect.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c index 66c51ac3d9..d0214cb6df 100644 --- a/hurd/hurdselect.c +++ b/hurd/hurdselect.c @@ -98,17 +98,17 @@ _hurd_select (int nfds, if (err) return -1; - td->sec = now.tv_sec + timeout->tv_sec; - td->nsec = now.tv_usec * 1000 + timeout->tv_nsec; + td[0].sec = now.tv_sec + timeout->tv_sec; + td[0].nsec = now.tv_usec * 1000 + timeout->tv_nsec; - if (td->nsec >= 1000000000) + if (td[0].nsec >= 1000000000) { - td->sec++; - td->nsec -= 1000000000; + td[0].sec++; + td[0].nsec -= 1000000000; } - if (td->sec < 0) - td->sec = LONG_MAX; /* XXX */ + if (td[0].sec < 0) + td[0].sec = LONG_MAX; /* XXX */ reply_msgid = IO_SELECT_TIMEOUT_REPLY_MSGID; } |