From: eric Date: Mon, 14 Jun 2021 17:58:15 +0000 (+0000) Subject: add required headers for smtpd.h and remove unnecessary ones in other files. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d3140113bef2b86d3af61dd20c05a8630ff966c2;p=openbsd add required headers for smtpd.h and remove unnecessary ones in other files. ok jung@ --- diff --git a/usr.sbin/smtpd/aliases.c b/usr.sbin/smtpd/aliases.c index 1c602e9f8b7..a473aeca189 100644 --- a/usr.sbin/smtpd/aliases.c +++ b/usr.sbin/smtpd/aliases.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aliases.c,v 1.78 2020/04/28 21:46:43 eric Exp $ */ +/* $OpenBSD: aliases.c,v 1.79 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -16,19 +16,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include -#include #include #include -#include #include #include "smtpd.h" diff --git a/usr.sbin/smtpd/bounce.c b/usr.sbin/smtpd/bounce.c index a69d2fd9178..b23a0dd4c78 100644 --- a/usr.sbin/smtpd/bounce.c +++ b/usr.sbin/smtpd/bounce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bounce.c,v 1.84 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: bounce.c,v 1.85 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2009 Gilles Chehade @@ -18,23 +18,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - #include -#include -#include #include -#include -#include -#include #include #include -#include #include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/ca.c b/usr.sbin/smtpd/ca.c index 769173ed49f..e7b4201d5cd 100644 --- a/usr.sbin/smtpd/ca.c +++ b/usr.sbin/smtpd/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.39 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: ca.c,v 1.40 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2014 Reyk Floeter @@ -17,27 +17,13 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include +#include +#include #include #include -#include #include #include -#include -#include -#include -#include -#include -#include -#include - #include "smtpd.h" #include "log.h" #include "ssl.h" diff --git a/usr.sbin/smtpd/compress_backend.c b/usr.sbin/smtpd/compress_backend.c index 516dd1ee6dc..1eb95d6755b 100644 --- a/usr.sbin/smtpd/compress_backend.c +++ b/usr.sbin/smtpd/compress_backend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compress_backend.c,v 1.9 2015/01/20 17:37:54 deraadt Exp $ */ +/* $OpenBSD: compress_backend.c,v 1.10 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2012 Charles Longeau @@ -17,18 +17,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include -#include -#include #include -#include -#include #include "smtpd.h" diff --git a/usr.sbin/smtpd/compress_gzip.c b/usr.sbin/smtpd/compress_gzip.c index d71a827aa01..e53f3a1fe2f 100644 --- a/usr.sbin/smtpd/compress_gzip.c +++ b/usr.sbin/smtpd/compress_gzip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compress_gzip.c,v 1.12 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: compress_gzip.c,v 1.13 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade @@ -17,27 +17,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include #include -#include -#include -#include - #include #include "smtpd.h" -#include "log.h" - #define GZIP_BUFFER_SIZE 16384 diff --git a/usr.sbin/smtpd/config.c b/usr.sbin/smtpd/config.c index 67d24c89edd..a93e09cb6cf 100644 --- a/usr.sbin/smtpd/config.c +++ b/usr.sbin/smtpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.56 2021/05/26 07:05:50 eric Exp $ */ +/* $OpenBSD: config.c,v 1.57 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -16,23 +16,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include #include -#include #include -#include -#include -#include #include -#include #include -#include - -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c index caada2716ef..43fdec287aa 100644 --- a/usr.sbin/smtpd/control.c +++ b/usr.sbin/smtpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.127 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: control.c,v 1.128 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade @@ -18,25 +18,15 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include #include -#include #include #include -#include -#include -#include #include #include -#include #include #include -#include #include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/crypto.c b/usr.sbin/smtpd/crypto.c index 4319dd41b14..dcd056a7968 100644 --- a/usr.sbin/smtpd/crypto.c +++ b/usr.sbin/smtpd/crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.c,v 1.9 2021/01/23 16:11:11 rob Exp $ */ +/* $OpenBSD: crypto.c,v 1.10 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2013 Gilles Chehade @@ -16,14 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include -#include -#include - #include - +#include #define CRYPTO_BUFFER_SIZE 16384 diff --git a/usr.sbin/smtpd/dict.c b/usr.sbin/smtpd/dict.c index d99d9b301dc..1d085f05c5a 100644 --- a/usr.sbin/smtpd/dict.c +++ b/usr.sbin/smtpd/dict.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dict.c,v 1.7 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: dict.c,v 1.8 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade @@ -17,12 +17,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include #include -#include #include "dict.h" #include "log.h" diff --git a/usr.sbin/smtpd/dispatcher.c b/usr.sbin/smtpd/dispatcher.c index f8fbe0066e8..d294fceda19 100644 --- a/usr.sbin/smtpd/dispatcher.c +++ b/usr.sbin/smtpd/dispatcher.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dispatcher.c,v 1.4 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: dispatcher.c,v 1.5 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2014 Gilles Chehade @@ -16,25 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include -#include #include #include -#include -#include -#include -#include #include -#include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/dns.c b/usr.sbin/smtpd/dns.c index d5b66af98ad..4cf5d23d1d1 100644 --- a/usr.sbin/smtpd/dns.c +++ b/usr.sbin/smtpd/dns.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dns.c,v 1.89 2019/09/18 11:26:30 eric Exp $ */ +/* $OpenBSD: dns.c,v 1.90 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -18,24 +18,13 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include -#include -#include -#include #include -#include -#include -#include #include -#include -#include -#include #include #include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/enqueue.c b/usr.sbin/smtpd/enqueue.c index b92f8ca20e6..edabfc96505 100644 --- a/usr.sbin/smtpd/enqueue.c +++ b/usr.sbin/smtpd/enqueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: enqueue.c,v 1.118 2020/03/18 20:17:14 eric Exp $ */ +/* $OpenBSD: enqueue.c,v 1.119 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2005 Henning Brauer @@ -18,27 +18,13 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - #include #include #include -#include -#include -#include -#include #include -#include -#include #include #include -#include #include -#include #include "smtpd.h" diff --git a/usr.sbin/smtpd/envelope.c b/usr.sbin/smtpd/envelope.c index 13a351aea9b..f2507f3f520 100644 --- a/usr.sbin/smtpd/envelope.c +++ b/usr.sbin/smtpd/envelope.c @@ -1,4 +1,4 @@ -/* $OpenBSD: envelope.c,v 1.48 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: envelope.c,v 1.49 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -17,28 +17,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include #include #include -#include -#include -#include -#include -#include -#include -#include -#include #include #include -#include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/esc.c b/usr.sbin/smtpd/esc.c index a07320ce3c6..65f328a488a 100644 --- a/usr.sbin/smtpd/esc.c +++ b/usr.sbin/smtpd/esc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: esc.c,v 1.5 2016/09/03 22:16:39 gilles Exp $ */ +/* $OpenBSD: esc.c,v 1.6 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2014 Gilles Chehade @@ -16,14 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include -#include -#include -#include -#include #include +#include #include "smtpd-defines.h" #include "smtpd-api.h" diff --git a/usr.sbin/smtpd/expand.c b/usr.sbin/smtpd/expand.c index 99b25d51f5e..98815d6543a 100644 --- a/usr.sbin/smtpd/expand.c +++ b/usr.sbin/smtpd/expand.c @@ -1,4 +1,4 @@ -/* $OpenBSD: expand.c,v 1.31 2018/05/31 21:06:12 gilles Exp $ */ +/* $OpenBSD: expand.c,v 1.32 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2009 Gilles Chehade @@ -17,21 +17,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include -#include #include #include #include "smtpd.h" -#include "log.h" static const char *expandnode_info(struct expandnode *); diff --git a/usr.sbin/smtpd/forward.c b/usr.sbin/smtpd/forward.c index d30d55e941a..7990b18d380 100644 --- a/usr.sbin/smtpd/forward.c +++ b/usr.sbin/smtpd/forward.c @@ -1,4 +1,4 @@ -/* $OpenBSD: forward.c,v 1.39 2015/12/28 22:08:30 jung Exp $ */ +/* $OpenBSD: forward.c,v 1.40 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -16,21 +16,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include #include -#include -#include -#include -#include #include -#include #include #include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/iobuf.c b/usr.sbin/smtpd/iobuf.c index c5b01d9da60..71778456ced 100644 --- a/usr.sbin/smtpd/iobuf.c +++ b/usr.sbin/smtpd/iobuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iobuf.c,v 1.15 2021/03/05 12:37:32 eric Exp $ */ +/* $OpenBSD: iobuf.c,v 1.16 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include #include #include diff --git a/usr.sbin/smtpd/ioev.c b/usr.sbin/smtpd/ioev.c index 8d6d13c2635..31cb8746e02 100644 --- a/usr.sbin/smtpd/ioev.c +++ b/usr.sbin/smtpd/ioev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ioev.c,v 1.47 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: ioev.c,v 1.48 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include #include #include diff --git a/usr.sbin/smtpd/limit.c b/usr.sbin/smtpd/limit.c index 3b0e8f4a28f..3524b378129 100644 --- a/usr.sbin/smtpd/limit.c +++ b/usr.sbin/smtpd/limit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: limit.c,v 1.6 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: limit.c,v 1.7 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -16,22 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include #include #include "smtpd.h" -#include "log.h" void limit_mta_set_defaults(struct mta_limits *limits) diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c index 58835b16ee2..764130d6078 100644 --- a/usr.sbin/smtpd/lka.c +++ b/usr.sbin/smtpd/lka.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka.c,v 1.246 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: lka.c,v 1.247 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -18,33 +18,16 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include #include -#include -#include - -#include #include -#include -#include -#include -#include #include -#include -#include #include -#include #include -#include #include #include "smtpd.h" #include "log.h" -#include "ssl.h" static void lka_imsg(struct mproc *, struct imsg *); static void lka_shutdown(void); diff --git a/usr.sbin/smtpd/lka_filter.c b/usr.sbin/smtpd/lka_filter.c index 07e14bc2c7d..52924139091 100644 --- a/usr.sbin/smtpd/lka_filter.c +++ b/usr.sbin/smtpd/lka_filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka_filter.c,v 1.67 2021/01/23 16:11:11 rob Exp $ */ +/* $OpenBSD: lka_filter.c,v 1.68 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2018 Gilles Chehade @@ -16,19 +16,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include - #include -#include -#include #include -#include -#include #include #include diff --git a/usr.sbin/smtpd/lka_session.c b/usr.sbin/smtpd/lka_session.c index 0561ac89181..fac4f81a08f 100644 --- a/usr.sbin/smtpd/lka_session.c +++ b/usr.sbin/smtpd/lka_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka_session.c,v 1.94 2020/12/31 08:27:15 martijn Exp $ */ +/* $OpenBSD: lka_session.c,v 1.95 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2011 Gilles Chehade @@ -17,26 +17,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include - -#include #include -#include -#include -#include -#include -#include -#include #include #include -#include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/mail.lmtp.c b/usr.sbin/smtpd/mail.lmtp.c index 69e584a6a7b..d460f4ca8c1 100644 --- a/usr.sbin/smtpd/mail.lmtp.c +++ b/usr.sbin/smtpd/mail.lmtp.c @@ -14,7 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include diff --git a/usr.sbin/smtpd/mail.maildir.c b/usr.sbin/smtpd/mail.maildir.c index 5fddc1f3dc8..c204caaf222 100644 --- a/usr.sbin/smtpd/mail.maildir.c +++ b/usr.sbin/smtpd/mail.maildir.c @@ -18,10 +18,8 @@ #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) #endif -#include #include -#include #include #include #include @@ -30,7 +28,6 @@ #include #include #include -#include #include #include diff --git a/usr.sbin/smtpd/mail.mboxfile.c b/usr.sbin/smtpd/mail.mboxfile.c index e24215b158e..0d97c95d499 100644 --- a/usr.sbin/smtpd/mail.mboxfile.c +++ b/usr.sbin/smtpd/mail.mboxfile.c @@ -15,18 +15,15 @@ */ #include -#include -#include #include #include #include -#include -#include #include #include #include #include +#include #include static void mboxfile_engine(const char *sender, const char *filename); diff --git a/usr.sbin/smtpd/mail.mda.c b/usr.sbin/smtpd/mail.mda.c index f9fb32367a6..d9441a35e00 100644 --- a/usr.sbin/smtpd/mail.mda.c +++ b/usr.sbin/smtpd/mail.mda.c @@ -14,17 +14,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include #include -#include #include #include -#include -#include -#include -#include #include #include #include diff --git a/usr.sbin/smtpd/mailaddr.c b/usr.sbin/smtpd/mailaddr.c index 554a8d0f913..e1a87f79eb6 100644 --- a/usr.sbin/smtpd/mailaddr.c +++ b/usr.sbin/smtpd/mailaddr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mailaddr.c,v 1.4 2020/09/22 18:04:27 martijn Exp $ */ +/* $OpenBSD: mailaddr.c,v 1.5 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2015 Gilles Chehade @@ -16,16 +16,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include -#include #include #include diff --git a/usr.sbin/smtpd/makemap.c b/usr.sbin/smtpd/makemap.c index e2a9e465b13..2144e83959e 100644 --- a/usr.sbin/smtpd/makemap.c +++ b/usr.sbin/smtpd/makemap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: makemap.c,v 1.74 2021/01/27 07:20:27 deraadt Exp $ */ +/* $OpenBSD: makemap.c,v 1.75 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -17,25 +17,17 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include -#include -#include -#include #include #include #include #include -#include #include -#include -#include #include #include #include #include -#include #include #include "smtpd.h" diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c index 28ab377c031..e347c68af34 100644 --- a/usr.sbin/smtpd/mda.c +++ b/usr.sbin/smtpd/mda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda.c,v 1.142 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: mda.c,v 1.143 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -19,25 +19,12 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - #include -#include -#include -#include #include -#include -#include -#include #include #include #include -#include #include -#include #include #include "smtpd.h" diff --git a/usr.sbin/smtpd/mda_mbox.c b/usr.sbin/smtpd/mda_mbox.c index b0bf1caf05c..4d0d29904ed 100644 --- a/usr.sbin/smtpd/mda_mbox.c +++ b/usr.sbin/smtpd/mda_mbox.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda_mbox.c,v 1.2 2020/02/03 15:41:22 gilles Exp $ */ +/* $OpenBSD: mda_mbox.c,v 1.3 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2018 Gilles Chehade @@ -16,28 +16,16 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include -#include -#include -#include #include #include -#include #include -#include #include -#include -#include -#include -#include #include -#include #include "smtpd.h" - void mda_mbox(struct deliver *deliver) { diff --git a/usr.sbin/smtpd/mda_unpriv.c b/usr.sbin/smtpd/mda_unpriv.c index 23093ae899c..1d59550aead 100644 --- a/usr.sbin/smtpd/mda_unpriv.c +++ b/usr.sbin/smtpd/mda_unpriv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda_unpriv.c,v 1.7 2020/06/01 05:21:30 chrisz Exp $ */ +/* $OpenBSD: mda_unpriv.c,v 1.8 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2018 Gilles Chehade @@ -16,25 +16,13 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - #include -#include -#include -#include #include -#include -#include #include #include -#include #include "smtpd.h" - void mda_unpriv(struct dispatcher *dsp, struct deliver *deliver, const char *pw_name, const char *pw_dir) diff --git a/usr.sbin/smtpd/mda_variables.c b/usr.sbin/smtpd/mda_variables.c index 4558305ef21..3592ca9938b 100644 --- a/usr.sbin/smtpd/mda_variables.c +++ b/usr.sbin/smtpd/mda_variables.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda_variables.c,v 1.6 2019/09/19 07:35:36 gilles Exp $ */ +/* $OpenBSD: mda_variables.c,v 1.7 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2011-2017 Gilles Chehade @@ -17,19 +17,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include - -#include -#include #include #include -#include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/mproc.c b/usr.sbin/smtpd/mproc.c index 1e5f73d156b..0beb00c81de 100644 --- a/usr.sbin/smtpd/mproc.c +++ b/usr.sbin/smtpd/mproc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mproc.c,v 1.38 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: mproc.c,v 1.39 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot @@ -16,22 +16,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include -#include -#include - #include -#include -#include -#include #include -#include #include #include diff --git a/usr.sbin/smtpd/mta.c b/usr.sbin/smtpd/mta.c index e9dfc7958bf..5c5a652ebc9 100644 --- a/usr.sbin/smtpd/mta.c +++ b/usr.sbin/smtpd/mta.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta.c,v 1.239 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: mta.c,v 1.240 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -19,26 +19,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include #include -#include -#include -#include -#include -#include #include #include -#include #include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/mta_session.c b/usr.sbin/smtpd/mta_session.c index 36e49681090..2d83084b9e8 100644 --- a/usr.sbin/smtpd/mta_session.c +++ b/usr.sbin/smtpd/mta_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta_session.c,v 1.142 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: mta_session.c,v 1.143 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -19,35 +19,18 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include #include -#include -#include #include #include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include #include #include -#include #include #include #include "smtpd.h" #include "log.h" -#include "ssl.h" #define MAX_TRYBEFOREDISABLE 10 diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 011e306ac61..832f4f2aec9 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.288 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: parse.y,v 1.289 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -22,36 +22,22 @@ */ %{ -#include -#include -#include -#include #include #include #include #include -#include +#include #include #include -#include #include -#include #include -#include -#include -#include #include -#include -#include -#include #include #include #include -#include - #include "smtpd.h" #include "ssl.h" #include "log.h" diff --git a/usr.sbin/smtpd/parser.c b/usr.sbin/smtpd/parser.c index 24b920948c2..f1ab01e90d7 100644 --- a/usr.sbin/smtpd/parser.c +++ b/usr.sbin/smtpd/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.42 2020/01/06 11:02:38 gilles Exp $ */ +/* $OpenBSD: parser.c,v 1.43 2021/06/14 17:58:15 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -16,14 +16,13 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include #include #include -#include +#include #include #include #include diff --git a/usr.sbin/smtpd/proxy.c b/usr.sbin/smtpd/proxy.c index f82dff34ba2..5b436d75d9e 100644 --- a/usr.sbin/smtpd/proxy.c +++ b/usr.sbin/smtpd/proxy.c @@ -14,24 +14,14 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include #include -#include -#include -#include #include -#include -#include #include #include -#include -#include "log.h" #include "smtpd.h" - +#include "log.h" /* * The PROXYv2 protocol is described here: diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c index 86e6dfdffdf..32c2212cdd8 100644 --- a/usr.sbin/smtpd/queue.c +++ b/usr.sbin/smtpd/queue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue.c,v 1.192 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: queue.c,v 1.193 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -18,23 +18,12 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include -#include #include #include #include -#include #include #include -#include #include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/queue_backend.c b/usr.sbin/smtpd/queue_backend.c index 0be658b2149..646cd629879 100644 --- a/usr.sbin/smtpd/queue_backend.c +++ b/usr.sbin/smtpd/queue_backend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue_backend.c,v 1.67 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: queue_backend.c,v 1.68 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2011 Gilles Chehade @@ -16,25 +16,13 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include #include -#include #include #include -#include -#include #include #include -#include #include #include -#include #include #include "smtpd.h" diff --git a/usr.sbin/smtpd/queue_fs.c b/usr.sbin/smtpd/queue_fs.c index df2c78fbee3..ec539eb9e11 100644 --- a/usr.sbin/smtpd/queue_fs.c +++ b/usr.sbin/smtpd/queue_fs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue_fs.c,v 1.21 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: queue_fs.c,v 1.22 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2011 Gilles Chehade @@ -18,24 +18,16 @@ #include #include -#include -#include -#include #include -#include #include #include -#include #include #include -#include #include #include -#include #include #include -#include #include #include "smtpd.h" diff --git a/usr.sbin/smtpd/queue_null.c b/usr.sbin/smtpd/queue_null.c index 823d9cc4daf..6e458c0c81d 100644 --- a/usr.sbin/smtpd/queue_null.c +++ b/usr.sbin/smtpd/queue_null.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue_null.c,v 1.9 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: queue_null.c,v 1.10 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot @@ -16,28 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include "smtpd.h" -#include "log.h" static int queue_null_message_create(uint32_t *msgid) diff --git a/usr.sbin/smtpd/queue_proc.c b/usr.sbin/smtpd/queue_proc.c index 753271c1781..4f3dd4de189 100644 --- a/usr.sbin/smtpd/queue_proc.c +++ b/usr.sbin/smtpd/queue_proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue_proc.c,v 1.8 2018/12/30 23:09:58 guenther Exp $ */ +/* $OpenBSD: queue_proc.c,v 1.9 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -16,25 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include #include -#include #include -#include -#include -#include -#include -#include #include -#include -#include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/queue_ram.c b/usr.sbin/smtpd/queue_ram.c index bc0a72a5fdb..390eb0b11ec 100644 --- a/usr.sbin/smtpd/queue_ram.c +++ b/usr.sbin/smtpd/queue_ram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue_ram.c,v 1.10 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: queue_ram.c,v 1.11 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot @@ -16,25 +16,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include #include #include -#include #include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/report_smtp.c b/usr.sbin/smtpd/report_smtp.c index 80f36fc7203..43eea5cf25b 100644 --- a/usr.sbin/smtpd/report_smtp.c +++ b/usr.sbin/smtpd/report_smtp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: report_smtp.c,v 1.11 2020/01/07 23:03:37 gilles Exp $ */ +/* $OpenBSD: report_smtp.c,v 1.12 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2018 Gilles Chehade @@ -16,32 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include "smtpd.h" -#include "log.h" -#include "ssl.h" -#include "rfc5322.h" void report_smtp_link_connect(const char *direction, uint64_t qid, const char *rdns, int fcrdns, diff --git a/usr.sbin/smtpd/resolver.c b/usr.sbin/smtpd/resolver.c index cc0d28efcc4..4d12f443a33 100644 --- a/usr.sbin/smtpd/resolver.c +++ b/usr.sbin/smtpd/resolver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resolver.c,v 1.6 2020/12/23 15:42:03 eric Exp $ */ +/* $OpenBSD: resolver.c,v 1.7 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2017-2018 Eric Faurot @@ -16,22 +16,14 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include -#include -#include + #include #include -#include #include -#include -#include -#include -#include #include #include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/rfc5322.c b/usr.sbin/smtpd/rfc5322.c index 02ea7976177..a6f15056d59 100644 --- a/usr.sbin/smtpd/rfc5322.c +++ b/usr.sbin/smtpd/rfc5322.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rfc5322.c,v 1.2 2018/10/24 18:59:29 gilles Exp $ */ +/* $OpenBSD: rfc5322.c,v 1.3 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2018 Eric Faurot @@ -16,7 +16,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include #include diff --git a/usr.sbin/smtpd/ruleset.c b/usr.sbin/smtpd/ruleset.c index 869d8115dd4..5a268c9ae43 100644 --- a/usr.sbin/smtpd/ruleset.c +++ b/usr.sbin/smtpd/ruleset.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ruleset.c,v 1.47 2019/11/25 14:18:33 gilles Exp $ */ +/* $OpenBSD: ruleset.c,v 1.48 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2009 Gilles Chehade @@ -16,22 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include - #include -#include -#include -#include #include -#include #include "smtpd.h" -#include "log.h" #define MATCH_RESULT(r, neg) ((r) == -1 ? -1 : ((neg) < 0 ? !(r) : (r))) diff --git a/usr.sbin/smtpd/runq.c b/usr.sbin/smtpd/runq.c index bbb9affa241..24ca71ca9ee 100644 --- a/usr.sbin/smtpd/runq.c +++ b/usr.sbin/smtpd/runq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: runq.c,v 1.3 2019/06/14 19:55:25 eric Exp $ */ +/* $OpenBSD: runq.c,v 1.4 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2013,2019 Eric Faurot @@ -16,17 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include -#include #include -#include -#include #include "smtpd.h" diff --git a/usr.sbin/smtpd/scheduler.c b/usr.sbin/smtpd/scheduler.c index 80edf9c758c..dcd3a295e68 100644 --- a/usr.sbin/smtpd/scheduler.c +++ b/usr.sbin/smtpd/scheduler.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scheduler.c,v 1.61 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: scheduler.c,v 1.62 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -19,26 +19,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include #include #include #include -#include -#include -#include -#include #include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/scheduler_backend.c b/usr.sbin/smtpd/scheduler_backend.c index 90c106fb826..71ce38da230 100644 --- a/usr.sbin/smtpd/scheduler_backend.c +++ b/usr.sbin/smtpd/scheduler_backend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scheduler_backend.c,v 1.17 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: scheduler_backend.c,v 1.18 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade @@ -16,22 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include #include -#include #include "smtpd.h" -#include "log.h" extern struct scheduler_backend scheduler_backend_null; extern struct scheduler_backend scheduler_backend_proc; diff --git a/usr.sbin/smtpd/scheduler_null.c b/usr.sbin/smtpd/scheduler_null.c index b8db4a92d51..065c5ab8a57 100644 --- a/usr.sbin/smtpd/scheduler_null.c +++ b/usr.sbin/smtpd/scheduler_null.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scheduler_null.c,v 1.10 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: scheduler_null.c,v 1.11 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot @@ -16,18 +16,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - #include "smtpd.h" static int scheduler_null_init(const char *); diff --git a/usr.sbin/smtpd/scheduler_proc.c b/usr.sbin/smtpd/scheduler_proc.c index 0f8c44b9e6c..402d36955d2 100644 --- a/usr.sbin/smtpd/scheduler_proc.c +++ b/usr.sbin/smtpd/scheduler_proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scheduler_proc.c,v 1.8 2015/12/05 13:14:21 claudio Exp $ */ +/* $OpenBSD: scheduler_proc.c,v 1.9 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -16,21 +16,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include #include -#include -#include -#include -#include -#include #include -#include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/scheduler_ramqueue.c b/usr.sbin/smtpd/scheduler_ramqueue.c index 2c6ed66d56b..fa3b951bc77 100644 --- a/usr.sbin/smtpd/scheduler_ramqueue.c +++ b/usr.sbin/smtpd/scheduler_ramqueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scheduler_ramqueue.c,v 1.46 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: scheduler_ramqueue.c,v 1.47 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade @@ -17,21 +17,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include #include -#include #include #include -#include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/smtp.c b/usr.sbin/smtpd/smtp.c index 7c7ab53645c..b02a9aef757 100644 --- a/usr.sbin/smtpd/smtp.c +++ b/usr.sbin/smtpd/smtp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp.c,v 1.170 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: smtp.c,v 1.171 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -18,26 +18,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - #include -#include -#include -#include -#include -#include -#include -#include #include -#include #include #include -#include - #include "smtpd.h" #include "log.h" #include "ssl.h" diff --git a/usr.sbin/smtpd/smtp_client.c b/usr.sbin/smtpd/smtp_client.c index 372e50ac51f..5c21bf385af 100644 --- a/usr.sbin/smtpd/smtp_client.c +++ b/usr.sbin/smtpd/smtp_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp_client.c,v 1.15 2021/03/05 12:37:32 eric Exp $ */ +/* $OpenBSD: smtp_client.c,v 1.16 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2018 Eric Faurot @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c index 4e472537d67..f3019171fd9 100644 --- a/usr.sbin/smtpd/smtp_session.c +++ b/usr.sbin/smtpd/smtp_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp_session.c,v 1.430 2021/05/20 07:33:32 eric Exp $ */ +/* $OpenBSD: smtp_session.c,v 1.431 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -19,23 +19,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include - #include #include -#include -#include -#include #include -#include -#include -#include #include #include #include @@ -44,7 +30,6 @@ #include "smtpd.h" #include "log.h" -#include "ssl.h" #include "rfc5322.h" #define SMTP_LINE_MAX 65535 diff --git a/usr.sbin/smtpd/smtpc.c b/usr.sbin/smtpd/smtpc.c index aca45be5a02..e5ac9530eb4 100644 --- a/usr.sbin/smtpd/smtpc.c +++ b/usr.sbin/smtpd/smtpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpc.c,v 1.17 2021/05/23 15:57:32 eric Exp $ */ +/* $OpenBSD: smtpc.c,v 1.18 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2018 Eric Faurot @@ -16,15 +16,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include -#include #include #include -#include -#include #include #include #include diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c index 5f4ded4858b..3d5926efdad 100644 --- a/usr.sbin/smtpd/smtpctl.c +++ b/usr.sbin/smtpd/smtpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpctl.c,v 1.168 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: smtpctl.c,v 1.169 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -21,30 +21,19 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include #include -#include #include #include #include -#include #include -#include -#include #include #include -#include #include #include #include -#include #include #include -#include #include "smtpd.h" #include "parser.h" diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 8860da0876a..27802f6b6cc 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.339 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: smtpd.c,v 1.340 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -18,42 +18,27 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include #include #include -#include -#include #include #include #include -#include #include #include #include -#include #include -#include #include #include #include #include -#include #include -#include #include #include #include -#include #include #include -#include -#include - #include "smtpd.h" #include "log.h" #include "ssl.h" diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index be934112103..c2c65136b59 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.668 2021/04/21 07:54:10 eric Exp $ */ +/* $OpenBSD: smtpd.h,v 1.669 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -22,9 +22,15 @@ #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) #endif -#include -#include +#include +#include +#include + #include +#include +#include +#include +#include #include "smtpd-defines.h" #include "smtpd-api.h" diff --git a/usr.sbin/smtpd/spfwalk.c b/usr.sbin/smtpd/spfwalk.c index b47410cf3d0..a713774b79c 100644 --- a/usr.sbin/smtpd/spfwalk.c +++ b/usr.sbin/smtpd/spfwalk.c @@ -18,22 +18,19 @@ #include #include -#include -#include #include -#include +#include #include #include #include #include #include -#include #include +#include #include #include #include -#include #include #include "smtpd-defines.h" diff --git a/usr.sbin/smtpd/srs.c b/usr.sbin/smtpd/srs.c index 84e3d34595c..4b5cebdcf22 100644 --- a/usr.sbin/smtpd/srs.c +++ b/usr.sbin/smtpd/srs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: srs.c,v 1.4 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: srs.c,v 1.5 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2019 Gilles Chehade @@ -16,30 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include +#include #include "smtpd.h" -#include "log.h" static uint8_t base32[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"; diff --git a/usr.sbin/smtpd/ssl.c b/usr.sbin/smtpd/ssl.c index b1e55fe56f2..cbb3574a049 100644 --- a/usr.sbin/smtpd/ssl.c +++ b/usr.sbin/smtpd/ssl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.c,v 1.95 2021/05/26 07:05:50 eric Exp $ */ +/* $OpenBSD: ssl.c,v 1.96 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -18,30 +18,15 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include #include -#include -#include #include -#include #include -#include -#include -#include -#include -#include - -#include #include #include -#include -#include -#include -#include +#include +#include +#include #include "log.h" #include "ssl.h" diff --git a/usr.sbin/smtpd/stat_backend.c b/usr.sbin/smtpd/stat_backend.c index 027f37a5546..7cd1d748ccb 100644 --- a/usr.sbin/smtpd/stat_backend.c +++ b/usr.sbin/smtpd/stat_backend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stat_backend.c,v 1.11 2018/12/27 10:35:26 gilles Exp $ */ +/* $OpenBSD: stat_backend.c,v 1.12 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade @@ -16,18 +16,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#include "log.h" #include "smtpd.h" extern struct stat_backend stat_backend_ramstat; diff --git a/usr.sbin/smtpd/stat_ramstat.c b/usr.sbin/smtpd/stat_ramstat.c index ede2e130234..800cffbf07f 100644 --- a/usr.sbin/smtpd/stat_ramstat.c +++ b/usr.sbin/smtpd/stat_ramstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stat_ramstat.c,v 1.11 2018/05/31 21:06:12 gilles Exp $ */ +/* $OpenBSD: stat_ramstat.c,v 1.12 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade @@ -16,21 +16,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include -#include -#include #include -#include #include "smtpd.h" -#include "log.h" - static void ramstat_init(void); static void ramstat_close(void); diff --git a/usr.sbin/smtpd/table.c b/usr.sbin/smtpd/table.c index 1d82d88b81a..7328cf5df6e 100644 --- a/usr.sbin/smtpd/table.c +++ b/usr.sbin/smtpd/table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table.c,v 1.49 2020/12/23 08:12:14 martijn Exp $ */ +/* $OpenBSD: table.c,v 1.50 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -17,25 +17,15 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include #include -#include -#include #include +#include #include -#include -#include -#include -#include #include -#include +#include #include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/table_db.c b/usr.sbin/smtpd/table_db.c index 8fb9d568ddd..b2f280da195 100644 --- a/usr.sbin/smtpd/table_db.c +++ b/usr.sbin/smtpd/table_db.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table_db.c,v 1.23 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: table_db.c,v 1.24 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2011 Gilles Chehade @@ -16,28 +16,16 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include -#include -#include -#include - -#include -#include #include -#include -#include #include -#include -#include #include #include #include "smtpd.h" #include "log.h" - /* db(3) backend */ static int table_db_config(struct table *); static int table_db_update(struct table *); diff --git a/usr.sbin/smtpd/table_getpwnam.c b/usr.sbin/smtpd/table_getpwnam.c index f8bcb613d0f..d40f1920073 100644 --- a/usr.sbin/smtpd/table_getpwnam.c +++ b/usr.sbin/smtpd/table_getpwnam.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table_getpwnam.c,v 1.13 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: table_getpwnam.c,v 1.14 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade @@ -16,25 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include #include -#include -#include -#include #include -#include -#include -#include -#include #include "smtpd.h" -#include "log.h" - /* getpwnam(3) backend */ static int table_getpwnam_config(struct table *); diff --git a/usr.sbin/smtpd/table_proc.c b/usr.sbin/smtpd/table_proc.c index dad041a47c3..56893a0fb61 100644 --- a/usr.sbin/smtpd/table_proc.c +++ b/usr.sbin/smtpd/table_proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table_proc.c,v 1.16 2019/10/03 04:51:15 gilles Exp $ */ +/* $OpenBSD: table_proc.c,v 1.17 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -16,22 +16,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include #include -#include -#include -#include -#include -#include -#include #include -#include -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/table_static.c b/usr.sbin/smtpd/table_static.c index f9519cb4ab4..af57038f231 100644 --- a/usr.sbin/smtpd/table_static.c +++ b/usr.sbin/smtpd/table_static.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table_static.c,v 1.32 2018/12/28 14:21:02 eric Exp $ */ +/* $OpenBSD: table_static.c,v 1.33 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -17,23 +17,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include - -#include -#include - #include #include - -#include -#include -#include -#include #include -#include #include #include "smtpd.h" diff --git a/usr.sbin/smtpd/to.c b/usr.sbin/smtpd/to.c index 930da94ae9d..6e340ccde1a 100644 --- a/usr.sbin/smtpd/to.c +++ b/usr.sbin/smtpd/to.c @@ -1,4 +1,4 @@ -/* $OpenBSD: to.c,v 1.47 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: to.c,v 1.48 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2009 Jacek Masiulaniec @@ -18,34 +18,14 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include -#include - -#include #include - #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include -#include #if IO_TLS #include #endif -#include #include "smtpd.h" #include "log.h" diff --git a/usr.sbin/smtpd/tree.c b/usr.sbin/smtpd/tree.c index a3e9e443410..d18bb297807 100644 --- a/usr.sbin/smtpd/tree.c +++ b/usr.sbin/smtpd/tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tree.c,v 1.7 2021/05/26 18:08:55 eric Exp $ */ +/* $OpenBSD: tree.c,v 1.8 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot @@ -16,12 +16,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include #include -#include #include "tree.h" #include "log.h" diff --git a/usr.sbin/smtpd/unpack_dns.c b/usr.sbin/smtpd/unpack_dns.c index fe50b026cb7..fd7ec6ba6e0 100644 --- a/usr.sbin/smtpd/unpack_dns.c +++ b/usr.sbin/smtpd/unpack_dns.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unpack_dns.c,v 1.1 2018/01/06 07:57:53 sunil Exp $ */ +/* $OpenBSD: unpack_dns.c,v 1.2 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2011-2014 Eric Faurot @@ -16,8 +16,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include - #include #include "unpack_dns.h" diff --git a/usr.sbin/smtpd/unpack_dns.h b/usr.sbin/smtpd/unpack_dns.h index 2318a0c51e2..5ed54373dda 100644 --- a/usr.sbin/smtpd/unpack_dns.h +++ b/usr.sbin/smtpd/unpack_dns.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unpack_dns.h,v 1.1 2018/01/06 07:57:53 sunil Exp $ */ +/* $OpenBSD: unpack_dns.h,v 1.2 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2011-2014 Eric Faurot @@ -20,7 +20,6 @@ #include -#include #include struct unpack { diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c index 9b6664b87fd..feb663cc61e 100644 --- a/usr.sbin/smtpd/util.c +++ b/usr.sbin/smtpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.153 2021/03/31 19:09:19 eric Exp $ */ +/* $OpenBSD: util.c,v 1.154 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2000,2001 Markus Friedl. All rights reserved. @@ -19,34 +19,20 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include #include -#include #include -#include +#include #include #include -#include -#include #include -#include -#include #include -#include -#include -#include #include #include -#include #include #include #include -#include #include #include "smtpd.h" diff --git a/usr.sbin/smtpd/waitq.c b/usr.sbin/smtpd/waitq.c index dc459372016..e75909e0b59 100644 --- a/usr.sbin/smtpd/waitq.c +++ b/usr.sbin/smtpd/waitq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: waitq.c,v 1.6 2018/05/31 21:06:12 gilles Exp $ */ +/* $OpenBSD: waitq.c,v 1.7 2021/06/14 17:58:16 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot @@ -16,16 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include -#include -#include - -#include -#include #include -#include #include "smtpd.h"