diff options
author | Roger Dingledine <arma@torproject.org> | 2003-05-09 02:20:16 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-05-09 02:20:16 +0000 |
commit | 9f38ba196c6d1bde5a460f7e5bfb90c9e127f235 (patch) | |
tree | 6c981c2626548a83357bcf168bb2566a10499709 /src/or/main.c | |
parent | 6973ccb59b2db61732c4be20dcb4a2cb1f77937e (diff) | |
download | tor-9f38ba196c6d1bde5a460f7e5bfb90c9e127f235.tar tor-9f38ba196c6d1bde5a460f7e5bfb90c9e127f235.tar.gz |
make router_dump_token only for debugging; clean backslashes
svn:r287
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/main.c b/src/or/main.c index 2cf4155b8..9724f121f 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -654,7 +654,7 @@ build_directory(directory_t *dir) { routers = (routerinfo_t**) malloc(sizeof(routerinfo_t*) * (nfds+1)); if (!routers) { - log(LOG_ERR, "build_directory(): couldn\'t allocate space for routerinfo"); + log(LOG_ERR, "build_directory(): couldn't allocate space for routerinfo"); return -1; } if (my_routerinfo) { @@ -671,7 +671,7 @@ build_directory(directory_t *dir) { continue; /* we only want to list ones that successfully handshaked */ router = router_get_by_addr_port(conn->addr,conn->port); if(!router) { - log(LOG_ERR,"build_directory(): couldn\'t find router %d:%d!", + log(LOG_ERR,"build_directory(): couldn't find router %d:%d!", conn->addr,conn->port); continue; } @@ -735,11 +735,11 @@ dump_signed_directory_to_string_impl(char *s, int maxlen, directory_t *dir, cp = s + i; if (crypto_SHA_digest(s, i, digest)) { - log(LOG_ERR,"dump_signed_directory_to_string(): couldn\'t compute digest"); + log(LOG_ERR,"dump_signed_directory_to_string(): couldn't compute digest"); return -1; } if (crypto_pk_private_sign(private_key, digest, 20, signature) < 0) { - log(LOG_ERR,"dump_signed_directory_to_string(): couldn\'t sign digest"); + log(LOG_ERR,"dump_signed_directory_to_string(): couldn't sign digest"); return -1; } @@ -749,7 +749,7 @@ dump_signed_directory_to_string_impl(char *s, int maxlen, directory_t *dir, i = strlen(s); cp = s+i; if (base64_encode(cp, maxlen-i, signature, 128) < 0) { - log(LOG_ERR,"dump_signed_directory_to_string(): couldn\'t base64-encode signature %d/%d"); + log(LOG_ERR,"dump_signed_directory_to_string(): couldn't base64-encode signature %d/%d"); return -1; } |