From 8f37357193399050763ea5093419631d5c5f34e3 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 8 Sep 2005 06:37:50 +0000 Subject: Make GCC v4 happy with heavy warnings enabled. svn:r4922 --- src/or/control.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/or/control.c') 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; /* -- cgit v1.2.3-54-g00ecf