aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-20 17:49:56 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-20 17:49:56 -0400
commitf24797a5870b685af98728002a0b0da73f582fda (patch)
tree1219499da10d023c02cadc5069317a2e3721e27b /src/or
parent398f15bdf174c8b480b2d8984562f8360cbd2dda (diff)
parentf91ea506f0a9af55a520dab4c88abf0c01bd2ce1 (diff)
downloadtor-f24797a5870b685af98728002a0b0da73f582fda.tar.gz
tor-f24797a5870b685af98728002a0b0da73f582fda.zip
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/or')
-rw-r--r--src/or/control.c5
-rw-r--r--src/or/geoip.c1
2 files changed, 2 insertions, 4 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 8d6da9c099..9e7c792b2b 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -4647,7 +4647,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)
@@ -4668,7 +4668,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=";
@@ -7786,4 +7786,3 @@ control_testing_set_global_event_mask(uint64_t mask)
global_event_mask = mask;
}
#endif /* defined(TOR_UNIT_TESTS) */
-
diff --git a/src/or/geoip.c b/src/or/geoip.c
index 634ee707b4..8c6afe1c91 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -1884,4 +1884,3 @@ geoip_free_all(void)
memset(geoip_digest, 0, sizeof(geoip_digest));
memset(geoip6_digest, 0, sizeof(geoip6_digest));
}
-