]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Add forgotten header
authorBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 14 Feb 2023 14:20:29 +0000 (15:20 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 14 Feb 2023 14:20:29 +0000 (15:20 +0100)
tests/mlmmj.c
tests/mlmmj_tests.h [new file with mode: 0644]

index b5f852eefd586c7ecc5c19a5da452daea8790057..dfc1f951efc120b2451fa3f164be996a02b81784 100644 (file)
@@ -23,7 +23,6 @@
 #include <sys/socket.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>
-#include <sys/mman.h>
 
 #include <atf-c.h>
 #include <inttypes.h>
diff --git a/tests/mlmmj_tests.h b/tests/mlmmj_tests.h
new file mode 100644 (file)
index 0000000..35a8320
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2023 Baptiste Daroussin <bapt@FreeBSD.org>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#pragma once
+
+#include <sys/types.h>
+#include <stdbool.h>
+
+#ifndef NELEM
+#define NELEM(array)    (sizeof(array) / sizeof((array)[0]))
+#endif
+
+void init_ml(bool complete);
+int fakesmtp(int pipe);
+void read_print_reply(int fd, const char **replies, size_t nreplies);