From: Baptiste Daroussin Date: Tue, 20 Jun 2023 08:17:47 +0000 (+0200) Subject: tests: remove write only variables X-Git-Tag: RELEASE_1_4_0rc1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1ec22ed0624fec5c2515263ef8eeebd0ef5a930;p=thirdparty%2Fmlmmj.git tests: remove write only variables --- 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);