diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-22 19:14:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-22 19:14:08 +0000 |
commit | b4d387c28bbcfabfc8baa1b63db396888534519a (patch) | |
tree | cfcf2aa91d3c404749eda39b6a10078f6ff39238 /src/common/util.c | |
parent | 7d79bec54d7b37aacb3914f4baa792315ce4f905 (diff) | |
download | tor-b4d387c28bbcfabfc8baa1b63db396888534519a.tar.gz tor-b4d387c28bbcfabfc8baa1b63db396888534519a.zip |
Make freelist_len in memarea.c static; document a few variables.
svn:r17741
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/util.c b/src/common/util.c index 531f953c9c..84a40a82a6 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1054,10 +1054,11 @@ tor_timegm(struct tm *tm) } /* strftime is locale-specific, so we need to replace those parts */ -/* DOCDOC WEEKDAY_NAMES */ + +/** A c-locale array of 3-letter names of weekdays, starting with Sun. */ static const char *WEEKDAY_NAMES[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; -/* DOCDOC MONTH_NAMES */ +/** A c-locale array of 3-letter names of months, starting with Jan. */ static const char *MONTH_NAMES[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; @@ -1341,9 +1342,10 @@ update_approx_time(time_t now) * have up to <b>ftime_slop</b> seconds of inaccuracy; IOW, our window of * estimate for the current time is now + ftime_skew +/- ftime_slop. */ -/* DOCDOC ftime_skew */ +/** Our current estimate of our skew, such that we think the current time is + * closest to time(NULL)+ftime_skew. */ static int ftime_skew = 0; -/* DOCDOC ftime_slop */ +/** Tolerance during time comparisons, in seconds. */ static int ftime_slop = 60; /** Set the largest amount of sloppiness we'll allow in fuzzy time * comparisons. */ |