]> git.ipfire.org Git - thirdparty/tor.git/commit
In the unit tests, use "test_eq_ptr" and "test_neq_ptr" consistently
authorNick Mathewson <nickm@torproject.org>
Fri, 2 Nov 2012 18:32:05 +0000 (14:32 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 2 Nov 2012 18:32:05 +0000 (14:32 -0400)
commit4458fd0cd8fa259f0ee8195e1aa86d5b7c6f8919
treeb7b8886da56232e92a0438edd2a869f6964141a4
parent1bfda600c338cd8f7d6b9acc7613b5567e6ee03f
In the unit tests, use "test_eq_ptr" and "test_neq_ptr" consistently

This is part of what's needed to build without warnings on mingw64:
it was warning about the cast from void* to long that happened in
the places we were using test_{n,}eq on pointers.

The alternative here would have been to broaden tt_int_op to accept
a long long or an intptr_t, but that's less correct (since pointers
aren't integers), and would hurt the portability of tinytest a
little.

Fixes part of 7260.
changes/bug7260
src/test/test_addr.c
src/test/test_containers.c
src/test/test_crypto.c
src/test/test_util.c