summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2021-02-05 17:17:05 +0000
committerAlexander Færøy <ahf@torproject.org>2021-02-05 17:17:05 +0000
commit34968048273faf0cde4d0c69d466b4d8d7275ab7 (patch)
tree41dbd70c15a16648caf056cd5524f80e1d909c3f /src
parent0a40892e8c376a3106cec1a4e9ba74f4dd146e68 (diff)
parent62b98716ff4823cff6f8e70c262766d1f25f252f (diff)
downloadtor-34968048273faf0cde4d0c69d466b4d8d7275ab7.tar.gz
tor-34968048273faf0cde4d0c69d466b4d8d7275ab7.zip
Merge branch 'maint-0.4.4' into maint-0.4.5
Diffstat (limited to 'src')
-rw-r--r--src/test/test_switch_id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_switch_id.c b/src/test/test_switch_id.c
index a911269c99..f97af55d17 100644
--- a/src/test/test_switch_id.c
+++ b/src/test/test_switch_id.c
@@ -31,6 +31,8 @@ static const struct {
{ NULL, 0 }
};
+#if !defined(_WIN32)
+
/* Returns the first port that we think we can bind to without special
* permissions. Usually this function returns 1024. */
static uint16_t
@@ -67,8 +69,6 @@ unprivileged_port_range_start(void)
return result;
}
-#if !defined(_WIN32)
-
#define PORT_TEST_RANGE_START 600
#define PORT_TEST_RANGE_END 1024