summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-03-09 16:19:20 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-03-09 19:31:18 +0100
commit8a67c9ff828aa4e669a25b1639d57dd9fab76312 (patch)
treea75614288cba133e5ff7e50f56c35cdd03430da7 /common
parentd19f1df8996cd92ac879bcf167d770cd6b2a13e4 (diff)
fix the description of the tio_time_remaining() function
Diffstat (limited to 'common')
-rw-r--r--common/tio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/tio.c b/common/tio.c
index 9383733..0039fd1 100644
--- a/common/tio.c
+++ b/common/tio.c
@@ -75,8 +75,9 @@ struct tio_fileinfo {
#endif /* DEBUG_TIO_STATS */
};
-/* update the timeout to the value that is remaining before deadline
- returns non-zero if there is no more time before the deadline */
+/* update the timeout to the value that is remaining before the deadline
+ returns the number of milliseconds before the deadline (or a negative
+ value of the deadline has expired) */
static inline int tio_time_remaining(struct timeval *deadline, int timeout)
{
struct timeval tv;