aboutsummaryrefslogtreecommitdiff
path: root/src/common/test.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-02 03:02:17 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-02 03:02:17 +0000
commitad4dc7448257c229860206b078e02778bcb1b408 (patch)
tree823243e7bc13876a466176db862028402dd4526b /src/common/test.h
parent85c79ffbc7b965355c3b51cc81000d517089e74e (diff)
downloadtor-ad4dc7448257c229860206b078e02778bcb1b408.tar
tor-ad4dc7448257c229860206b078e02778bcb1b408.tar.gz
Use a stricter set of warnings; make them all pass.
svn:r2645
Diffstat (limited to 'src/common/test.h')
-rw-r--r--src/common/test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/test.h b/src/common/test.h
index 81d54b88f..656d9ba51 100644
--- a/src/common/test.h
+++ b/src/common/test.h
@@ -108,7 +108,7 @@ extern int have_failed;
#define test_memeq(expr1, expr2, len) \
STMT_BEGIN \
- void *v1=(expr1), *v2=(expr2); \
+ const void *v1=(expr1), *v2=(expr2); \
if(!memcmp(v1,v2,(len))) { printf("."); fflush(stdout); } else { \
have_failed = 1; \
printf("\nFile %s: line %d (%s): Assertion failed: (%s==%s)\n", \