mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix a compile warning in config.c reported by sebastian
This commit is contained in:
+2
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user