From: Baptiste Daroussin Date: Tue, 14 Feb 2023 14:20:29 +0000 (+0100) Subject: Add forgotten header X-Git-Tag: RELEASE_1_4_0b1~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad84e833d4aa2f13f56468310e8d8ce8feedbb99;p=thirdparty%2Fmlmmj.git Add forgotten header --- diff --git a/tests/mlmmj.c b/tests/mlmmj.c index b5f852ee..dfc1f951 100644 --- a/tests/mlmmj.c +++ b/tests/mlmmj.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include diff --git a/tests/mlmmj_tests.h b/tests/mlmmj_tests.h new file mode 100644 index 00000000..35a8320e --- /dev/null +++ b/tests/mlmmj_tests.h @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2023 Baptiste Daroussin + * + * 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 +#include + +#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);