summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-22 10:14:39 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-26 10:56:53 -0700
commitf3382bd7223a3e5c0e6f1c32dc7d9e8a2d28fb36 (patch)
tree75c0e58bd24d6955f5897158582d7b9bb6848b12 /src
parent4cbfee14d40221a25545d2d2c3d6e6ce76f6afe9 (diff)
downloadtor-f3382bd7223a3e5c0e6f1c32dc7d9e8a2d28fb36.tar.gz
tor-f3382bd7223a3e5c0e6f1c32dc7d9e8a2d28fb36.zip
Rename "proto " to "pr " in consensuses
Diffstat (limited to 'src')
-rw-r--r--src/or/dirserv.c2
-rw-r--r--src/or/dirvote.c2
-rw-r--r--src/or/routerparse.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index d3bc615abc..d7a707d847 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1861,7 +1861,7 @@ routerstatus_format_entry(const routerstatus_t *rs, const char *version,
smartlist_add_asprintf(chunks, "v %s\n", version);
}
if (protocols) {
- smartlist_add_asprintf(chunks, "proto %s\n", protocols);
+ smartlist_add_asprintf(chunks, "pr %s\n", protocols);
}
if (format != NS_V2) {
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index c65243cf09..9b41e8f449 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -2047,7 +2047,7 @@ networkstatus_compute_consensus(smartlist_t *votes,
smartlist_add(chunks, tor_strdup("\n"));
if (chosen_protocol_list &&
consensus_method >= MIN_METHOD_FOR_RS_PROTOCOLS) {
- smartlist_add_asprintf(chunks, "proto %s\n", chosen_protocol_list);
+ smartlist_add_asprintf(chunks, "pr %s\n", chosen_protocol_list);
}
/* Now the weight line. */
if (rs_out.has_bandwidth) {
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 459a939fb7..aecf6a2723 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -389,7 +389,7 @@ static token_rule_t rtrstatus_token_table[] = {
T01("w", K_W, ARGS, NO_OBJ ),
T0N("m", K_M, CONCAT_ARGS, NO_OBJ ),
T0N("id", K_ID, GE(2), NO_OBJ ),
- T01("proto", K_PROTO, CONCAT_ARGS, NO_OBJ ),
+ T01("pr", K_PROTO, CONCAT_ARGS, NO_OBJ ),
T0N("opt", K_OPT, CONCAT_ARGS, OBJ_OK ),
END_OF_TABLE
};