aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-12-24 06:32:20 +0000
committerNick Mathewson <nickm@torproject.org>2006-12-24 06:32:20 +0000
commitc12a1f1e3ad5d8baca70e5b17a6f19b0bbdcb022 (patch)
tree421d51d4839377ab6dc83195b2e7d6e9f0777a23 /src
parent28c2bd905e6e65735cd8c05a6fc28195cf384e77 (diff)
downloadtor-c12a1f1e3ad5d8baca70e5b17a6f19b0bbdcb022.tar
tor-c12a1f1e3ad5d8baca70e5b17a6f19b0bbdcb022.tar.gz
r11701@Kushana: nickm | 2006-12-24 01:24:39 -0500
fix warning on win32. svn:r9184
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 962ea761c..9b3cca19d 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3362,7 +3362,7 @@ parse_dir_server_line(const char *line, int validate_only)
} else if (!strcasecmpstart(flag, "orport=")) {
int ok;
flag += strlen("orport=");
- or_port = tor_parse_long(flag, 10, 1, 65535, &ok, NULL);
+ or_port = (uint16_t) tor_parse_long(flag, 10, 1, 65535, &ok, NULL);
if (!ok)
log_warn(LD_CONFIG, "Invalid orport '%s' on DirServer line.", flag);
} else {