summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-02-24 07:50:38 +0000
committerRoger Dingledine <arma@torproject.org>2007-02-24 07:50:38 +0000
commit50f22e858a2045649984a4f7c863f22106efcd95 (patch)
treec471be0f9b68ef5f59304b9fe5d7bc34f6573f29 /src/common
parentf599adf40ad702f26680ab6a7bbf869c788dd860 (diff)
downloadtor-50f22e858a2045649984a4f7c863f22106efcd95.tar.gz
tor-50f22e858a2045649984a4f7c863f22106efcd95.zip
doc pedant
svn:r9634
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.c4
-rw-r--r--src/common/torgzip.c6
-rw-r--r--src/common/util.c6
3 files changed, 8 insertions, 8 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 17676a4b73..c9f5e85aba 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -990,8 +990,8 @@ typedef struct tor_pthread_data_t {
void (*func)(void *);
void *data;
} tor_pthread_data_t;
-/** Given a tor_pthread_data_t <b>d</b>, call d-&gt;func(d-&gt;data);, and
- * free d. Used to make sure we can call functions the way pthread
+/** Given a tor_pthread_data_t <b>_data</b>, call _data-&gt;func(d-&gt;data);,
+ * and free _data. Used to make sure we can call functions the way pthread
* expects. */
static void *
tor_pthread_helper_fn(void *_data)
diff --git a/src/common/torgzip.c b/src/common/torgzip.c
index e1028293a3..5a1e1e8a0b 100644
--- a/src/common/torgzip.c
+++ b/src/common/torgzip.c
@@ -299,8 +299,8 @@ detect_compression_method(const char *in, size_t in_len)
}
}
-/** Internal state for a incremental zlib compression/decompression. The body
- * of this struct is not exposed. */
+/** Internal state for an incremental zlib compression/decompression. The
+ * body of this struct is not exposed. */
struct tor_zlib_state_t {
struct z_stream_s stream;
int compress;
@@ -308,7 +308,7 @@ struct tor_zlib_state_t {
/** Construct and return a tor_zlib_state_t object using <b>method</b>. If
* <b>compress</b>, it's for compression; otherwise it's for
- * decompression. */
+ * decompression. */
tor_zlib_state_t *
tor_zlib_new(int compress, compress_method_t method)
{
diff --git a/src/common/util.c b/src/common/util.c
index a2e10b77a1..b042963c57 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -862,7 +862,7 @@ tv_addms(struct timeval *a, long ms)
a->tv_usec %= 1000000;
}
-/** Yield true iff <b>y</b> is a leap-year */
+/** Yield true iff <b>y</b> is a leap-year. */
#define IS_LEAPYEAR(y) (!(y % 4) && ((y % 100) || !(y % 400)))
/** Helper: Return the number of leap-days between Jan 1, y1 and Jan 1, y2. */
static int
@@ -1957,9 +1957,9 @@ get_interface_address(int severity, uint32_t *addr)
#ifndef MS_WINDOWS
/* Based on code contributed by christian grothoff */
-/** True iff we've called start_daemon. */
+/** True iff we've called start_daemon(). */
static int start_daemon_called = 0;
-/** True iff we've called finish_daemon. */
+/** True iff we've called finish_daemon(). */
static int finish_daemon_called = 0;
/** Socketpair used to communicate between parent and child process while
* daemonizing. */