summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-pty.c2
-rw-r--r--src/test/test-ring.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-pty.c b/src/test/test-pty.c
index ed23e9f0f1..cab569a9da 100644
--- a/src/test/test-pty.c
+++ b/src/test/test-pty.c
@@ -100,7 +100,7 @@ static void test_pty(void) {
Pty *pty;
rcvsiz = 0;
- memset(rcvbuf, 0, sizeof(rcvbuf));
+ zero(rcvbuf);
assert_se(sd_event_default(&event) >= 0);
diff --git a/src/test/test-ring.c b/src/test/test-ring.c
index 5e4efdbde9..a9dd01ca01 100644
--- a/src/test/test-ring.c
+++ b/src/test/test-ring.c
@@ -36,7 +36,7 @@ static void test_ring(void) {
struct iovec vec[2];
int s;
- memset(&r, 0, sizeof(r));
+ zero(r);
l = ring_peek(&r, vec);
assert_se(l == 0);