summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-11-14 03:45:48 +0000
committerNick Mathewson <nickm@torproject.org>2006-11-14 03:45:48 +0000
commitad1f019110435944bb5a29931a17b0bcb74e6db7 (patch)
tree2afe7fcd8d8fab74bb9ef31a461848e36bbe1f8c
parentd6cc235eba9496a51873c74bcfad25946340d3be (diff)
downloadtor-ad1f019110435944bb5a29931a17b0bcb74e6db7.tar.gz
tor-ad1f019110435944bb5a29931a17b0bcb74e6db7.zip
r9317@totoro: nickm | 2006-11-13 22:45:33 -0500
Fix some more mipspro warnings. Nothing should remain excecpt "conversion from pointer to same-sized integral type." svn:r8950
-rw-r--r--src/or/buffers.c4
-rw-r--r--src/or/directory.c3
2 files changed, 5 insertions, 2 deletions
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