]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove some now-needless length defines
authorNick Mathewson <nickm@torproject.org>
Sun, 24 Feb 2013 03:37:39 +0000 (22:37 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Apr 2013 15:04:57 +0000 (11:04 -0400)
src/or/dirserv.h
src/or/dirvote.c

index 6c2e372dc4a33b201642dc27e5e516646d093148..a71ac7db0498db68822607ea2fdbc1f6e3209380 100644 (file)
 
 /** Maximum allowable length of a version line in a networkstatus. */
 #define MAX_V_LINE_LEN 128
-/** Length of "r Authority BadDirectory BadExit Exit Fast Guard HSDir Named
- * Running Stable Unnamed V2Dir Valid\n". */
-#define MAX_FLAG_LINE_LEN 96
-/** Length of "w" line for weighting.  Currently at most
- * "w Bandwidth=<uint32t> Measured=<uint32t>\n" */
-#define MAX_WEIGHT_LINE_LEN (12+10+10+10+1)
-/** Maximum length of an exit policy summary line. */
-#define MAX_POLICY_LINE_LEN (3+MAX_EXITPOLICY_SUMMARY_LEN)
 
 int connection_dirserv_flushed_some(dir_connection_t *conn);
 
index 6ae4944369113004b06651eee70879b325b2cc4f..8ae0bb8613bd6a78415f1503b0cb97fa2a92d374 100644 (file)
@@ -57,9 +57,6 @@ static char *make_consensus_method_list(int low, int high, const char *sep);
  * Voting
  * =====*/
 
-/* Overestimated. */
-#define MICRODESC_LINE_LEN 80
-
 /** Return a new string containing the string representation of the vote in
  * <b>v3_ns</b>, signed with our v3 signing key <b>private_signing_key</b>.
  * For v3 authorities. */