more typo fixes from mcs and gk

This commit is contained in:
Nick Mathewson 2015-01-28 11:25:37 -05:00
parent 9c4328c038
commit c240eea0df
3 changed files with 3 additions and 3 deletions

View File

@ -2166,7 +2166,7 @@ static const getinfo_item_t getinfo_items[] = {
PREFIX("ns/purpose/", networkstatus, PREFIX("ns/purpose/", networkstatus,
"Brief summary of router status by purpose (v2 directory format)."), "Brief summary of router status by purpose (v2 directory format)."),
PREFIX("consensus/", networkstatus, PREFIX("consensus/", networkstatus,
"Information abour and from the ns consensus."), "Information about and from the ns consensus."),
ITEM("network-status", dir, ITEM("network-status", dir,
"Brief summary of router status (v1 directory format)"), "Brief summary of router status (v1 directory format)"),
ITEM("circuit-status", events, "List of current circuits originating here."), ITEM("circuit-status", events, "List of current circuits originating here."),

View File

@ -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: The grammar is:

View File

@ -1913,7 +1913,7 @@ getinfo_helper_networkstatus(control_connection_t *conn,
} else if (!strcmpstart(question, "ns/purpose/")) { } else if (!strcmpstart(question, "ns/purpose/")) {
*answer = networkstatus_getinfo_by_purpose(question+11, time(NULL)); *answer = networkstatus_getinfo_by_purpose(question+11, time(NULL));
return *answer ? 0 : -1; return *answer ? 0 : -1;
} else if (!strcmpstart(question, "consensus/packages")) { } else if (!strcmp(question, "consensus/packages")) {
const networkstatus_t *ns = networkstatus_get_latest_consensus(); const networkstatus_t *ns = networkstatus_get_latest_consensus();
if (ns->package_lines) if (ns->package_lines)
*answer = smartlist_join_strings(ns->package_lines, "\n", 1, NULL); *answer = smartlist_join_strings(ns->package_lines, "\n", 1, NULL);