aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-03-18 14:30:46 +0000
committerNick Mathewson <nickm@torproject.org>2008-03-18 14:30:46 +0000
commitba915e421104089437ccbff6d2cab5dcf07ea99c (patch)
treeab8aa2ca040d5b9801c63273e04f0ad7c014254e /src/or/routerparse.c
parent31d185a23b138c88f33ab9d359ec36254d4bae56 (diff)
downloadtor-ba915e421104089437ccbff6d2cab5dcf07ea99c.tar.gz
tor-ba915e421104089437ccbff6d2cab5dcf07ea99c.zip
r18913@catbus: nickm | 2008-03-18 10:30:39 -0400
16, not 64. svn:r14094
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 835d20683d..c6b17a79e8 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -2171,13 +2171,12 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out,
goto err;
}
voter->addr = ntohl(in.s_addr);
- /* XXX021 long to int to uint64 to uint16? what the hell? -rd */
- voter->dir_port = (uint64_t)
- (int) tor_parse_long(tok->args[4], 10, 0, 65535, &ok, NULL);
+ voter->dir_port = (uint16_t)
+ tor_parse_long(tok->args[4], 10, 0, 65535, &ok, NULL);
if (!ok)
goto err;
- voter->or_port = (uint64_t)
- (int) tor_parse_long(tok->args[5], 10, 0, 65535, &ok, NULL);
+ voter->or_port = (uint16_t)
+ tor_parse_long(tok->args[5], 10, 0, 65535, &ok, NULL);
if (!ok)
goto err;
} else if (tok->tp == K_CONTACT) {