[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] naked constants are ugly



commit 1ba1bdee4bd8f3c00e603fe9b0fd2f14eeb60466
Author: Roger Dingledine <arma@xxxxxxxxxxxxxx>
Date:   Sat May 21 18:55:23 2011 -0400

    naked constants are ugly
---
 src/or/router.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/or/router.c b/src/or/router.c
index 777441a..184715b 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -490,8 +490,8 @@ init_keys(void)
   char fingerprint_line[MAX_NICKNAME_LEN+FINGERPRINT_LEN+3];
   const char *mydesc;
   crypto_pk_env_t *prkey;
-  char digest[20];
-  char v3_digest[20];
+  char digest[DIGEST_LEN];
+  char v3_digest[DIGEST_LEN];
   char *cp;
   or_options_t *options = get_options();
   authority_type_t type;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits