]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove RS_ENTRY_LEN
authorNick Mathewson <nickm@torproject.org>
Sat, 23 Feb 2013 07:46:40 +0000 (02:46 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Apr 2013 15:04:57 +0000 (11:04 -0400)
Nothing uses it any longer now that we use smartlists of strings for
stuff that manipulates iles of formatted routerstatuses.

src/or/dirserv.h

index bdd97d81edf8dea0f6451c0e8415d47128b2350b..6c2e372dc4a33b201642dc27e5e516646d093148 100644 (file)
 #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)
-/** Amount of space to allocate for each entry: r, s, and v lines. */
-#define RS_ENTRY_LEN                                                    \
-  ( /* first line */                                                    \
-   MAX_NICKNAME_LEN+BASE64_DIGEST_LEN*2+ISO_TIME_LEN+INET_NTOA_BUF_LEN+ \
-   5*2 /* ports */ + 10 /* punctuation */ +                             \
-   /* second line */                                                    \
-   MAX_FLAG_LINE_LEN +                                                  \
-   /* weight line */                                                    \
-   MAX_WEIGHT_LINE_LEN +                                                \
-   /* p line. */                                                        \
-   MAX_POLICY_LINE_LEN +                                                \
-   /* v line. */                                                        \
-   MAX_V_LINE_LEN                                                       \
-   )
 
 int connection_dirserv_flushed_some(dir_connection_t *conn);