summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-28 11:25:37 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-28 11:25:37 -0500
commitc240eea0df38be9a82548a71fa54b553057a8b42 (patch)
treea7a6870b3685b112a7df56909f7f6efba77266ce /src
parent9c4328c0384dc5fd84555daddbd54da2d375c4d0 (diff)
downloadtor-c240eea0df38be9a82548a71fa54b553057a8b42.tar.gz
tor-c240eea0df38be9a82548a71fa54b553057a8b42.zip
more typo fixes from mcs and gk
Diffstat (limited to 'src')
-rw-r--r--src/or/control.c2
-rw-r--r--src/or/dirserv.c2
-rw-r--r--src/or/networkstatus.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 8e2b4625ae..ceb2b2f198 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -2166,7 +2166,7 @@ static const getinfo_item_t getinfo_items[] = {
PREFIX("ns/purpose/", networkstatus,
"Brief summary of router status by purpose (v2 directory format)."),
PREFIX("consensus/", networkstatus,
- "Information abour and from the ns consensus."),
+ "Information about and from the ns consensus."),
ITEM("network-status", dir,
"Brief summary of router status (v1 directory format)"),
ITEM("circuit-status", events, "List of current circuits originating here."),
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 4a6c50616c..c65e99e1ff 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -3258,7 +3258,7 @@ connection_dirserv_flushed_some(dir_connection_t *conn)
}
}
-/** Return true iff <b>line</b> is a valid RecommenedPackages line.
+/** Return true iff <b>line</b> is a valid RecommendedPackages line.
*/
/*
The grammar is:
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 0024b1ffc0..a25413a12f 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1913,7 +1913,7 @@ getinfo_helper_networkstatus(control_connection_t *conn,
} else if (!strcmpstart(question, "ns/purpose/")) {
*answer = networkstatus_getinfo_by_purpose(question+11, time(NULL));
return *answer ? 0 : -1;
- } else if (!strcmpstart(question, "consensus/packages")) {
+ } else if (!strcmp(question, "consensus/packages")) {
const networkstatus_t *ns = networkstatus_get_latest_consensus();
if (ns->package_lines)
*answer = smartlist_join_strings(ns->package_lines, "\n", 1, NULL);