]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a compile warning in config.c reported by sebastian
authorNick Mathewson <nickm@torproject.org>
Tue, 19 Jul 2011 18:04:55 +0000 (14:04 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 19 Jul 2011 18:04:55 +0000 (14:04 -0400)
src/or/config.c

index cc1561bca653f3be1583bcf5a77641e221740155..efee014894a01de0dfcc93b4c09bd064afe2d43b 100644 (file)
@@ -5057,8 +5057,8 @@ parse_client_port_config(smartlist_t *out,
       if (elt_sl_idx == 0)
         continue; /* Skip addr:port */
       if (!strcasecmpstart(elt, "SessionGroup=")) {
-        int group = tor_parse_long(elt+strlen("SessionGroup="),
-                                   10, 0, INT_MAX, &ok, NULL);
+        int group = (int)tor_parse_long(elt+strlen("SessionGroup="),
+                                        10, 0, INT_MAX, &ok, NULL);
         if (!ok) {
           log_warn(LD_CONFIG, "Invalid %sPort option '%s'",
                    portname, escaped(elt));