aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-12-25 15:37:47 +0000
committerRoger Dingledine <arma@torproject.org>2008-12-25 15:37:47 +0000
commita12c3f2c86d967bce7253e78f4c42929b03cc87d (patch)
tree3d17dfd8fca4ff9556ddeed3a23b281632d69a2e /src/or
parent4a1fd99899b654081465d42f4df8a9d119f906c8 (diff)
downloadtor-a12c3f2c86d967bce7253e78f4c42929b03cc87d.tar
tor-a12c3f2c86d967bce7253e78f4c42929b03cc87d.tar.gz
some fixes i found in my sandbox
svn:r17771
Diffstat (limited to 'src/or')
-rw-r--r--src/or/control.c2
-rw-r--r--src/or/geoip.c2
-rw-r--r--src/or/routerlist.c3
-rw-r--r--src/or/test.c2
4 files changed, 5 insertions, 4 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 73aad0c38..317bb1117 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -496,7 +496,7 @@ decode_escaped_string(const char *start, size_t in_len_max,
* but it will always end with a CRLF sequence.
*
* Currently the length of the message is limited to 1024 (including the
- * ending CR LF NUL ("\\r\\n\\0") . */
+ * ending CR LF NUL ("\\r\\n\\0"). */
static void
connection_printf_to_buf(control_connection_t *conn, const char *format, ...)
{
diff --git a/src/or/geoip.c b/src/or/geoip.c
index 65d03aec6..908cb307f 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -28,7 +28,7 @@ typedef struct geoip_entry_t {
/** How long are the periods for which we should remember request history? */
#define REQUEST_HIST_PERIOD (8*60*60)
-/** A per-country record for GeoIP request history */
+/** A per-country record for GeoIP request history. */
typedef struct geoip_country_t {
char countrycode[3];
uint32_t n_v2_ns_requests[REQUEST_HIST_LEN];
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index f91af473f..22bd5e296 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2908,7 +2908,8 @@ router_set_status(const char *digest, int up)
* <b>router</b> after subsequent calls with other routerinfo's -- they
* might cause the original routerinfo to get freed.
*
- * Returns the status for the operation.
+ * Returns the status for the operation. Might set *<b>msg</b> if it wants
+ * the poster of the router to know something.
*
* If <b>from_cache</b>, this descriptor came from our disk cache. If
* <b>from_fetch</b>, we received it in response to a request we made.
diff --git a/src/or/test.c b/src/or/test.c
index 4f8fbb0a5..3b022f7f2 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -1388,7 +1388,7 @@ _test_eq_ip6(struct in6_addr *a, struct in6_addr *b, const char *e1,
STMT_END
/** Helper: assert that <b>a</b> parses by tor_inet_pton() into a address that
- * passes tor_addr_is_internal() with <b>for_listening</b> */
+ * passes tor_addr_is_internal() with <b>for_listening</b>. */
#define test_internal_ip(a,for_listening) STMT_BEGIN \
test_eq(tor_inet_pton(AF_INET6, a, &t1.addr.in6_addr), 1); \
t1.family = AF_INET6; \