aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-08 06:37:50 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-08 06:37:50 +0000
commit8f37357193399050763ea5093419631d5c5f34e3 (patch)
tree9e5a60d76135fbb292ae0e055501e875683d597d /src/or/control.c
parentf50ddfd4dd4cc52eddf7ca1ba2ae96798fc516fb (diff)
downloadtor-8f37357193399050763ea5093419631d5c5f34e3.tar.gz
tor-8f37357193399050763ea5093419631d5c5f34e3.zip
Make GCC v4 happy with heavy warnings enabled.
svn:r4922
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/control.c b/src/or/control.c
index e4e4eaab40..a1dd0532fe 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -409,7 +409,7 @@ get_escaped_string(const char *start, size_t in_len_max,
*outp++ = *cp++;
}
*outp = '\0';
- tor_assert((outp - *out) == *out_len);
+ tor_assert((outp - *out) == (int)*out_len);
return end+1;
}
@@ -1965,7 +1965,8 @@ connection_control_process_inbuf_v1(connection_t *conn)
* recognize it.
*/
cmd_len = 0;
- while (cmd_len < data_len && !TOR_ISSPACE(conn->incoming_cmd[cmd_len]))
+ while ((size_t)cmd_len < data_len
+ && !TOR_ISSPACE(conn->incoming_cmd[cmd_len]))
++cmd_len;
/*