aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-05-04 23:58:48 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-05-04 23:59:43 +0200
commit87431ad74f0642e067cd0bf6e9e80c50a749e6cd (patch)
treee41d01bda617657cca7f52cc2b6befd3558316a1 /test
parente109b400133f57ce129f5e274fbb90cca0052a3b (diff)
Don’t take a pointer argument in da_foreach
Diffstat (limited to 'test')
-rw-r--r--test/_brk-test.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/_brk-test.h b/test/_brk-test.h
index 69e7e0a..e599578 100644
--- a/test/_brk-test.h
+++ b/test/_brk-test.h
@@ -76,7 +76,7 @@ test(struct u8view sv, int id)
size_t off = 0;
char8_t *p = bufalloc(nullptr, 1, total);
- da_foreach (&items, g) {
+ da_foreach (items, g) {
memcpy(p + off, g->buf, g->len);
off += g->len;
}
@@ -102,7 +102,7 @@ test(struct u8view sv, int id)
}
}
- da_foreach (&items, wd)
+ da_foreach (items, wd)
free(wd->buf);
free(items.buf);
free(p);