mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
fix windows warnings
svn:r2667
This commit is contained in:
parent
70f7e32ec6
commit
5b312541d7
@ -118,7 +118,7 @@ send_control_error(connection_t *conn, uint16_t error, const char *message)
|
||||
len = strlen(message);
|
||||
tor_assert(len < (256-2));
|
||||
memcpy(buf+2, message, len);
|
||||
send_control_message(conn, CONTROL_CMD_ERROR, len+2, buf);
|
||||
send_control_message(conn, CONTROL_CMD_ERROR, (uint16_t)(len+2), buf);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -181,7 +181,8 @@ static int handle_control_getconf(connection_t *conn, uint16_t body_len,
|
||||
}
|
||||
|
||||
msg = smartlist_join_strings2(answer_elements, "\0", 1, 0, &msg_len);
|
||||
send_control_message(conn, CONTROL_CMD_CONFVALUE, msg_len, msg);
|
||||
send_control_message(conn, CONTROL_CMD_CONFVALUE,
|
||||
(uint16_t)msg_len, msg);
|
||||
|
||||
done:
|
||||
SMARTLIST_FOREACH(answer_elements, char *, cp, tor_free(cp));
|
||||
|
Loading…
Reference in New Issue
Block a user