[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix a compile warning in config.c reported by sebastian



commit 1017322b59c5c722b1db4e2f040db5cceb41dea9
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Jul 19 14:04:55 2011 -0400

    Fix a compile warning in config.c reported by sebastian
---
 src/or/config.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/or/config.c b/src/or/config.c
index cc1561b..efee014 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -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));



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits