summaryrefslogtreecommitdiff
path: root/src/test/test_dos.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-10 08:41:00 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-10 09:25:28 -0400
commita81827d99ffdd36d87ca91637f022558783d44ac (patch)
treeebbc59e01d019ab71db1a3cb8c87a564cea0b4d2 /src/test/test_dos.c
parentc5db7667d6964344e87fb7ee71df3f2ebe8131e6 (diff)
downloadtor-a81827d99ffdd36d87ca91637f022558783d44ac.tar.gz
tor-a81827d99ffdd36d87ca91637f022558783d44ac.zip
Make channel_get_addr_if_possible() take a const channel_t.
(There is no reason that looking up the address of a channel should ever change it.)
Diffstat (limited to 'src/test/test_dos.c')
-rw-r--r--src/test/test_dos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_dos.c b/src/test/test_dos.c
index 527e5bbe7f..3be09047d5 100644
--- a/src/test/test_dos.c
+++ b/src/test/test_dos.c
@@ -108,7 +108,7 @@ test_dos_conn_creation(void *arg)
/** Helper mock: Place a fake IP addr for this channel in <b>addr_out</b> */
static int
-mock_channel_get_addr_if_possible(channel_t *chan, tor_addr_t *addr_out)
+mock_channel_get_addr_if_possible(const channel_t *chan, tor_addr_t *addr_out)
{
(void)chan;
tt_int_op(AF_INET,OP_EQ, tor_addr_parse(addr_out, "18.0.0.1"));