]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
naked constants are ugly
authorRoger Dingledine <arma@torproject.org>
Sat, 21 May 2011 22:55:23 +0000 (18:55 -0400)
committerRoger Dingledine <arma@torproject.org>
Sat, 21 May 2011 22:55:23 +0000 (18:55 -0400)
src/or/router.c

index 777441affb7ed0d83090395509cebb083edd7750..184715b7501d11a6b3dd4cba2f9a103ef9b07a6e 100644 (file)
@@ -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;