diff options
author | David Robillard <d@drobilla.net> | 2011-09-20 19:43:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-09-20 19:43:18 +0000 |
commit | 06b045b28394e7d0219f626fd1a5b21236a8e303 (patch) | |
tree | 722135eac7c3f462bfe82d1e24448d05afea5baf /test/patree_test.c | |
parent | f15595dd3245f911edc36932de298fc51f2ea02f (diff) | |
download | zix-06b045b28394e7d0219f626fd1a5b21236a8e303.tar.gz zix-06b045b28394e7d0219f626fd1a5b21236a8e303.tar.bz2 zix-06b045b28394e7d0219f626fd1a5b21236a8e303.zip |
Const correctness.
git-svn-id: http://svn.drobilla.net/zix/trunk@36 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'test/patree_test.c')
-rw-r--r-- | test/patree_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/patree_test.c b/test/patree_test.c index 07d4a79..6d30509 100644 --- a/test/patree_test.c +++ b/test/patree_test.c @@ -81,8 +81,8 @@ main(int argc, char** argv) // Search for each string for (size_t i = 0; i < n_strings; ++i) { - char* match = NULL; - ZixStatus st = zix_patree_find(patree, strings[i], &match); + const char* match = NULL; + ZixStatus st = zix_patree_find(patree, strings[i], &match); if (st) { return test_fail("Failed to find `%s'\n", strings[i]); } @@ -100,8 +100,8 @@ main(int argc, char** argv) }; const size_t n_not_indexed = sizeof(not_indexed) / sizeof(char*); for (size_t i = 0; i < n_not_indexed; ++i) { - char* match = NULL; - ZixStatus st = zix_patree_find(patree, not_indexed[i], &match); + const char* match = NULL; + ZixStatus st = zix_patree_find(patree, not_indexed[i], &match); if (st != ZIX_STATUS_NOT_FOUND) { return test_fail("Unexpectedly found `%s'\n", not_indexed[i]); } |