diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-22 17:53:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-22 17:53:04 +0000 |
commit | 1e5f4574613be3f26cd05f2873fd54ee526a63d7 (patch) | |
tree | 614832936d9b2e3592f76f400a001d933fcaf14f /src/common/util.c | |
parent | 167d266dbf618c856a87ac482668cd848651ab62 (diff) | |
download | tor-1e5f4574613be3f26cd05f2873fd54ee526a63d7.tar.gz tor-1e5f4574613be3f26cd05f2873fd54ee526a63d7.zip |
Fix most DOCDOCs remaining and/or added by redox.
svn:r17734
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/common/util.c b/src/common/util.c index d40de03ceb..60adbb5bc6 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1341,14 +1341,16 @@ update_approx_time(time_t now) */ static int ftime_skew = 0; static int ftime_slop = 60; -/* DOCDOC ftime_set_maximum_sloppiness */ +/** Set the largest amount of sloppiness we'll allow in fuzzy time + * comparisons. */ void ftime_set_maximum_sloppiness(int seconds) { tor_assert(seconds >= 0); ftime_slop = seconds; } -/* DOCDOC ftime_set_estimated_skew */ +/** Set the amount by which we believe our system clock to differ from + * real time. */ void ftime_set_estimated_skew(int seconds) { @@ -1362,21 +1364,21 @@ ftime_get_window(time_t now, ftime_t *ft_out) ft_out->latest = now + ftime_skew + ftime_slop; } #endif -/* DOCDOC ftime_maybe_after */ +/** Return true iff we think that <b>now</b> might be after <b>when</b>. */ int ftime_maybe_after(time_t now, time_t when) { /* It may be after when iff the latest possible current time is after when */ return (now + ftime_skew + ftime_slop) >= when; } -/* DOCDOC ftime_maybe_before */ +/** Return true iff we think that <b>now</b> might be before <b>when</b>. */ int ftime_maybe_before(time_t now, time_t when) { /* It may be before when iff the earliest possible current time is before */ return (now + ftime_skew - ftime_slop) < when; } -/* DOCDOC ftime_definitely_after */ +/** Return true if we think that <b>now</b> is definitely after <b>when</b>. */ int ftime_definitely_after(time_t now, time_t when) { @@ -1384,7 +1386,7 @@ ftime_definitely_after(time_t now, time_t when) * after when. */ return (now + ftime_skew - ftime_slop) >= when; } -/* DOCDOC ftime_definitely_before */ +/** Return true if we think that <b>now</b> is definitely before <b>when</b>. */ int ftime_definitely_before(time_t now, time_t when) { |