aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-10-14 02:47:09 +0000
committerRoger Dingledine <arma@torproject.org>2004-10-14 02:47:09 +0000
commitaebc3a03ba6eea02f4d50fa4bd5dbf49cd37a0c7 (patch)
treebd0b81c8f1021d0b8150cd32ba41b4c6c5489e78 /src/or/connection_edge.c
parent92bb360ad771a4cba21f1e4a77e367f973e546ef (diff)
downloadtor-aebc3a03ba6eea02f4d50fa4bd5dbf49cd37a0c7.tar.gz
tor-aebc3a03ba6eea02f4d50fa4bd5dbf49cd37a0c7.zip
more int to size_t conversions, fixing one or more amd64 bugs
plus a whitespace patch on config.c from vicman svn:r2482
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 20c09e2abe..81b069d54e 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -129,7 +129,7 @@ int
connection_edge_end(connection_t *conn, char reason, crypt_path_t *cpath_layer)
{
char payload[5];
- int payload_len=1;
+ size_t payload_len=1;
circuit_t *circ;
if(conn->has_sent_end) {
@@ -625,11 +625,11 @@ int connection_ap_make_bridge(char *address, uint16_t port) {
void connection_ap_handshake_socks_resolved(connection_t *conn,
int answer_type,
- int answer_len,
+ size_t answer_len,
const char *answer)
{
char buf[256];
- int replylen;
+ size_t replylen;
if (answer_type == RESOLVED_TYPE_IPV4) {
uint32_t a = get_uint32(answer);
@@ -686,7 +686,7 @@ void connection_ap_handshake_socks_resolved(connection_t *conn,
* Otherwise, send back a reply based on whether <b>success</b> is 1 or 0.
*/
void connection_ap_handshake_socks_reply(connection_t *conn, char *reply,
- int replylen, int success) {
+ size_t replylen, int success) {
char buf[256];
if(replylen) { /* we already have a reply in mind */