Browse Source

r11701@Kushana: nickm | 2006-12-24 01:24:39 -0500
fix warning on win32.


svn:r9184

Nick Mathewson 17 years ago
parent
commit
c12a1f1e3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/config.c

+ 1 - 1
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 {