]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
tests: remove write only variables
authorBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 20 Jun 2023 08:17:47 +0000 (10:17 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 20 Jun 2023 08:17:47 +0000 (10:17 +0200)
tests/mlmmj.c

index 808a6ad370ec74fa6f545e9b55a960311779f48c..ddf2520e51dc8e9ffd937490a326901b4f7fa910 100644 (file)
@@ -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);