Loading src/or/buffers.c +4 −3 Original line number Diff line number Diff line Loading @@ -291,7 +291,7 @@ int write_to_buf(const char *string, int string_len, buf_t *buf) { assert(string && BUF_OK(buf)); if (buf_ensure_capacity(buf, buf->datalen+string_len)) { log_fn(LOG_WARN, "buflen too small, can't hold %d bytes.",buf->datalen+string_len); log_fn(LOG_WARN, "buflen too small, can't hold %d bytes.", (int)buf->datalen+string_len); return -1; } Loading Loading @@ -453,7 +453,7 @@ int fetch_from_buf_socks(buf_t *buf, socks_request_t *req) { tmpbuf = inet_ntoa(in); if(strlen(tmpbuf)+1 > MAX_SOCKS_ADDR_LEN) { log_fn(LOG_WARN,"socks5 IP takes %d bytes, which doesn't fit in %d", strlen(tmpbuf)+1,MAX_SOCKS_ADDR_LEN); (int)strlen(tmpbuf)+1,(int)MAX_SOCKS_ADDR_LEN); return -1; } strcpy(req->address,tmpbuf); Loading Loading @@ -502,7 +502,8 @@ int fetch_from_buf_socks(buf_t *buf, socks_request_t *req) { in.s_addr = htonl(destip); tmpbuf = inet_ntoa(in); if(strlen(tmpbuf)+1 > MAX_SOCKS_ADDR_LEN) { log_fn(LOG_WARN,"socks4 addr (%d bytes) too long.", strlen(tmpbuf)); log_fn(LOG_WARN,"socks4 addr (%d bytes) too long.", (int)strlen(tmpbuf)); return -1; } log_fn(LOG_DEBUG,"socks4: successfully read destip (%s)", tmpbuf); Loading src/or/connection_edge.c +2 −2 Original line number Diff line number Diff line Loading @@ -894,7 +894,7 @@ static uint32_t client_dns_lookup_entry(const char *address) if (inet_aton(address, &in)) { log_fn(LOG_DEBUG, "Using static address %s (%08lX)", address, ntohl(in.s_addr)); (unsigned long)ntohl(in.s_addr)); return ntohl(in.s_addr); } search.address = (char*)address; Loading src/or/directory.c +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ static int directory_send_command(connection_t *conn, int command) { return -1; } snprintf(tmp, sizeof(tmp), "POST / HTTP/1.0\r\nContent-Length: %d\r\n\r\n%s", strlen(s), s); (int)strlen(s), s); connection_write_to_buf(tmp, strlen(tmp), conn); conn->state = DIR_CONN_STATE_CLIENT_SENDING_UPLOAD; break; Loading Loading
src/or/buffers.c +4 −3 Original line number Diff line number Diff line Loading @@ -291,7 +291,7 @@ int write_to_buf(const char *string, int string_len, buf_t *buf) { assert(string && BUF_OK(buf)); if (buf_ensure_capacity(buf, buf->datalen+string_len)) { log_fn(LOG_WARN, "buflen too small, can't hold %d bytes.",buf->datalen+string_len); log_fn(LOG_WARN, "buflen too small, can't hold %d bytes.", (int)buf->datalen+string_len); return -1; } Loading Loading @@ -453,7 +453,7 @@ int fetch_from_buf_socks(buf_t *buf, socks_request_t *req) { tmpbuf = inet_ntoa(in); if(strlen(tmpbuf)+1 > MAX_SOCKS_ADDR_LEN) { log_fn(LOG_WARN,"socks5 IP takes %d bytes, which doesn't fit in %d", strlen(tmpbuf)+1,MAX_SOCKS_ADDR_LEN); (int)strlen(tmpbuf)+1,(int)MAX_SOCKS_ADDR_LEN); return -1; } strcpy(req->address,tmpbuf); Loading Loading @@ -502,7 +502,8 @@ int fetch_from_buf_socks(buf_t *buf, socks_request_t *req) { in.s_addr = htonl(destip); tmpbuf = inet_ntoa(in); if(strlen(tmpbuf)+1 > MAX_SOCKS_ADDR_LEN) { log_fn(LOG_WARN,"socks4 addr (%d bytes) too long.", strlen(tmpbuf)); log_fn(LOG_WARN,"socks4 addr (%d bytes) too long.", (int)strlen(tmpbuf)); return -1; } log_fn(LOG_DEBUG,"socks4: successfully read destip (%s)", tmpbuf); Loading
src/or/connection_edge.c +2 −2 Original line number Diff line number Diff line Loading @@ -894,7 +894,7 @@ static uint32_t client_dns_lookup_entry(const char *address) if (inet_aton(address, &in)) { log_fn(LOG_DEBUG, "Using static address %s (%08lX)", address, ntohl(in.s_addr)); (unsigned long)ntohl(in.s_addr)); return ntohl(in.s_addr); } search.address = (char*)address; Loading
src/or/directory.c +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ static int directory_send_command(connection_t *conn, int command) { return -1; } snprintf(tmp, sizeof(tmp), "POST / HTTP/1.0\r\nContent-Length: %d\r\n\r\n%s", strlen(s), s); (int)strlen(s), s); connection_write_to_buf(tmp, strlen(tmp), conn); conn->state = DIR_CONN_STATE_CLIENT_SENDING_UPLOAD; break; Loading