diff --git a/src/or/buffers.c b/src/or/buffers.c index b85b79cec8..154bfbbc8b 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -187,7 +187,7 @@ buf_resize(buf_t *buf, size_t new_capacity) * to move the start portion back by that many bytes. */ memmove(buf->cur-(buf->len-new_capacity), buf->cur, - buf->len-offset); + (size_t)(buf->len-offset)); offset -= (buf->len-new_capacity); } else { /* The data doesn't wrap around, but it does extend beyond the new @@ -232,7 +232,7 @@ buf_resize(buf_t *buf, size_t new_capacity) * end portion forward by that many bytes. */ memmove(buf->cur+(new_capacity-buf->len), buf->cur, - buf->len-offset); + (size_t)(buf->len-offset)); buf->cur += new_capacity-buf->len; } buf->memsize = buf->len = new_capacity; diff --git a/src/or/directory.c b/src/or/directory.c index 274e644ec2..6d52e7029d 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -907,6 +907,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn) "we are %d seconds skewed. (That's okay.)", delta); } } + (void) skewed; /* skewed isn't used yet. */ if (status_code == 503) { log_info(LD_DIR,"Received http status code %d (%s) from server " @@ -1576,6 +1577,7 @@ directory_handle_command_get(dir_connection_t *conn, char *headers, return 0; } // note_request(request_type,dlen); + (void) request_type; write_http_response_header(conn, -1, deflated?"application/octet_stream":"text/plain", deflated?"deflate":NULL, @@ -1622,6 +1624,7 @@ directory_handle_command_get(dir_connection_t *conn, char *headers, } else { request_type = "/tor/server/?"; } + (void) request_type; /* usable for note_request. */ if (!strcmpstart(url, "/tor/server/d/")) conn->dir_spool_src = DIR_SPOOL_SERVER_BY_DIGEST; else