From f91ea506f0a9af55a520dab4c88abf0c01bd2ce1 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 20 Jun 2018 17:49:06 -0400 Subject: Fix clang warnings introduced by 9f2b887c5d251b93ee9def708 --- src/or/control.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/or/control.c') 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) */ - -- cgit v1.2.3-54-g00ecf