aboutsummaryrefslogtreecommitdiff
path: root/tests/test_str.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-10-09 11:01:01 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-10-09 12:51:30 -0400
commit30cc02b2e84a6498647fce561989f099b1fc0934 (patch)
tree1f81f22f878d51020bb9be3bca2409cd84f94646 /tests/test_str.c
parent09e8910d66ed566bb0224f68726a057cc47aa0c0 (diff)
downloadstasis-30cc02b2e84a6498647fce561989f099b1fc0934.tar.gz
Fix pointer cast
Diffstat (limited to 'tests/test_str.c')
-rw-r--r--tests/test_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_str.c b/tests/test_str.c
index f8aa1e9..4991c1c 100644
--- a/tests/test_str.c
+++ b/tests/test_str.c
@@ -244,7 +244,7 @@ void test_join_ex() {
};
for (size_t i = 0; i < sizeof(tc) / sizeof(*tc); i++) {
char *result;
- result = join_ex(tc[i].delim, "a", "b", "c", "d", "e", NULL);
+ result = join_ex((char *) tc[i].delim, "a", "b", "c", "d", "e", NULL);
STASIS_ASSERT(strcmp(result ? result : "", tc[i].expected) == 0, "failed to join array");
guard_free(result);
}