From f1ec22ed0624fec5c2515263ef8eeebd0ef5a930 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 20 Jun 2023 10:17:47 +0200 Subject: [PATCH] tests: remove write only variables --- tests/mlmmj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mlmmj.c b/tests/mlmmj.c index 808a6ad3..ddf2520e 100644 --- a/tests/mlmmj.c +++ b/tests/mlmmj.c @@ -222,7 +222,7 @@ ATF_TC_BODY(mygetline, tc) ATF_REQUIRE(res != NULL); dprintf(fd, "\nab\n"); lseek (fd, 0, SEEK_SET); - res = mygetline(fd); + mygetline(fd); res = mygetline(fd); ATF_REQUIRE(res != NULL); ATF_REQUIRE_STREQ(res, "ab\n"); @@ -918,7 +918,7 @@ ATF_TC_BODY(smtp, tc) }; dprintf(smtppipe[0], "220 me fake smtp\n"); for (uint8_t i = 0; i < NELEM(replies); i++) { - reply = atf_utils_readline(smtppipe[0]); + atf_utils_readline(smtppipe[0]); dprintf(smtppipe[0], "%s", replies[i]); } exit (0); -- 2.47.2