From f3382bd7223a3e5c0e6f1c32dc7d9e8a2d28fb36 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 22 Sep 2016 10:14:39 -0400 Subject: [PATCH] Rename "proto " to "pr " in consensuses --- src/or/dirserv.c | 2 +- src/or/dirvote.c | 2 +- src/or/routerparse.c | 2 +- 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 }; -- 2.11.4.GIT