diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-08-12 08:18:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-08-12 08:18:13 +0000 |
commit | bbd4032fc14fb23edf7633382ed26788523ac728 (patch) | |
tree | b750c6470d44414897d7a977ed14c7f6ba809d6f /src/or | |
parent | 25c9c837eb6fde0e7a6ef84b76602450e5672d53 (diff) | |
download | tor-bbd4032fc14fb23edf7633382ed26788523ac728.tar tor-bbd4032fc14fb23edf7633382ed26788523ac728.tar.gz |
Make windows happier still
svn:r392
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/routers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routers.c b/src/or/routers.c index f4d059d9c..e9cee1ef7 100644 --- a/src/or/routers.c +++ b/src/or/routers.c @@ -56,7 +56,7 @@ int learn_my_address(struct sockaddr_in *me) { memset(me,0,sizeof(struct sockaddr_in)); me->sin_family = AF_INET; memcpy((void *)&me->sin_addr,(void *)localhost->h_addr,sizeof(struct in_addr)); - me->sin_port = htons(options.ORPort); + me->sin_port = htons((uint16_t) options.ORPort); log_fn(LOG_DEBUG,"chose address as '%s'.",inet_ntoa(me->sin_addr)); if (!strncmp("127.",inet_ntoa(me->sin_addr), 4) && strcasecmp(localhostname, "localhost")) { |