diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-19 14:04:55 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-19 14:04:55 -0400 |
commit | 1017322b59c5c722b1db4e2f040db5cceb41dea9 (patch) | |
tree | 9f0307c5b56cc5a66bac0e02aafd8a4f2c830970 | |
parent | e8b9815711e7cd1ef0b83153aefcc0d05e817f4e (diff) | |
download | tor-1017322b59c5c722b1db4e2f040db5cceb41dea9.tar.gz tor-1017322b59c5c722b1db4e2f040db5cceb41dea9.zip |
Fix a compile warning in config.c reported by sebastian
-rw-r--r-- | 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 cc1561bca6..efee014894 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)); |