summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-12-08 23:45:37 +0000
committerNick Mathewson <nickm@torproject.org>2003-12-08 23:45:37 +0000
commitac552573dddbd661685382cdd89841a206dc0b00 (patch)
tree80ed7a762c4e939f8481820c1719be9351b7afa2 /src/or/test.c
parent8bd7c94bf6ca5ef0ece02b165ed0102eb39e0d78 (diff)
downloadtor-ac552573dddbd661685382cdd89841a206dc0b00.tar.gz
tor-ac552573dddbd661685382cdd89841a206dc0b00.zip
Make router/directory parsing nondestructive and more const-friendly
svn:r890
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c
index ef830d5449..1b1ee37270 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -608,7 +608,7 @@ test_dir_format()
test_assert(router_dump_router_to_string(buf, 2048, &r1, pk2)>0);
cp = buf;
- rp1 = router_get_entry_from_string(&cp);
+ rp1 = router_get_entry_from_string((const char**)&cp);
test_assert(rp1);
test_streq(rp1->address, r1.address);
test_eq(rp1->or_port, r1.or_port);