diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-03 21:53:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-03 21:53:54 +0000 |
commit | 5b312541d7d3fa20aca0c07aab5c4341fa779762 (patch) | |
tree | 1e18cb1699a69574dbb8b260f1386cbee2717c37 /src/or | |
parent | 70f7e32ec6bc73d25d1b7e5e86d657594d2c4b4d (diff) | |
download | tor-5b312541d7d3fa20aca0c07aab5c4341fa779762.tar tor-5b312541d7d3fa20aca0c07aab5c4341fa779762.tar.gz |
fix windows warnings
svn:r2667
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/control.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/control.c b/src/or/control.c index b7e68dfa1..15d5f5a1a 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -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)); |