summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-14 04:06:24 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-14 04:06:24 +0000
commit08c33f0b4664b699593057f02d7f98108157aacc (patch)
treeb921117ebf5edc7f1cb26b87ec88067910ae8d71 /src/or/routerparse.c
parentbd10bf4b5bbe022f85bbf8d56e6afa50ad76bf60 (diff)
downloadtor-08c33f0b4664b699593057f02d7f98108157aacc.tar.gz
tor-08c33f0b4664b699593057f02d7f98108157aacc.zip
Compile without warnings on windows
svn:r2491
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index b58950a68f..4e96d28da0 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -799,9 +799,9 @@ routerinfo_t *router_parse_entry_from_string(const char *s,
log_fn(LOG_WARN,"Wrong # of arguments to \"ports\"");
goto err;
}
- router->or_port = tor_parse_long(tok->args[0],10,0,65535,NULL,NULL);
- router->socks_port = tor_parse_long(tok->args[1],10,0,65535,NULL,NULL);
- router->dir_port = tor_parse_long(tok->args[2],10,0,65535,NULL,NULL);
+ router->or_port = (uint16_t) tor_parse_long(tok->args[0],10,0,65535,NULL,NULL);
+ router->socks_port = (uint16_t) tor_parse_long(tok->args[1],10,0,65535,NULL,NULL);
+ router->dir_port = (uint16_t) tor_parse_long(tok->args[2],10,0,65535,NULL,NULL);
ports_set = 1;
}
@@ -813,7 +813,7 @@ routerinfo_t *router_parse_entry_from_string(const char *s,
log_fn(LOG_WARN,"Wrong # of arguments to \"dircacheport\"");
goto err;
}
- router->dir_port = tor_parse_long(tok->args[0],10,1,65535,NULL,NULL);
+ router->dir_port = (uint16_t) tor_parse_long(tok->args[0],10,1,65535,NULL,NULL);
}
tok = find_first_by_keyword(tokens, K_BANDWIDTH);