From: Roger Dingledine Date: Sat, 21 May 2011 22:55:23 +0000 (-0400) Subject: naked constants are ugly X-Git-Tag: tor-0.2.2.28-beta~8^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ba1bdee4bd8f3c00e603fe9b0fd2f14eeb60466;p=thirdparty%2Ftor.git naked constants are ugly --- diff --git a/src/or/router.c b/src/or/router.c index 777441affb..184715b750 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;