summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-20 17:49:06 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-20 17:49:06 -0400
commitf91ea506f0a9af55a520dab4c88abf0c01bd2ce1 (patch)
treeff6505ed7083fb28eaf897adc819c0e723d018d2 /src/or/control.c
parent7589fd6d403ac2aecb991a07069d78c6dccae719 (diff)
downloadtor-f91ea506f0a9af55a520dab4c88abf0c01bd2ce1.tar.gz
tor-f91ea506f0a9af55a520dab4c88abf0c01bd2ce1.zip
Fix clang warnings introduced by 9f2b887c5d251b93ee9def708
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 0d637dce7a..ae54689c0b 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -4597,7 +4597,7 @@ handle_control_add_onion(control_connection_t *conn,
const char *body)
{
smartlist_t *args;
- size_t arg_len;
+ int arg_len;
(void) len; /* body is nul-terminated; it's safe to ignore the length */
args = getargs_helper("ADD_ONION", conn, body, 2, -1);
if (!args)
@@ -4618,7 +4618,7 @@ handle_control_add_onion(control_connection_t *conn,
rend_auth_type_t auth_type = REND_NO_AUTH;
/* Default to adding an anonymous hidden service if no flag is given */
int non_anonymous = 0;
- for (size_t i = 1; i < arg_len; i++) {
+ for (int i = 1; i < arg_len; i++) {
static const char *port_prefix = "Port=";
static const char *flags_prefix = "Flags=";
static const char *max_s_prefix = "MaxStreams=";
@@ -7736,4 +7736,3 @@ control_testing_set_global_event_mask(uint64_t mask)
global_event_mask = mask;
}
#endif /* defined(TOR_UNIT_TESTS) */
-