summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-01-01 16:15:48 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-01-01 16:15:48 +0000
commit0acb936ed709bd127fba7f91e2569f990501f5ed (patch)
treee650527b6611ab6f88ca4d848c8e7f501dd1b998 /usr.sbin
parentd5a7b00c1ba27199a9e7ec839e839c98edccf69f (diff)
remove unnecessary includes; ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/aliases.c7
-rw-r--r--usr.sbin/smtpd/config.c4
-rw-r--r--usr.sbin/smtpd/control.c3
-rw-r--r--usr.sbin/smtpd/dns.c6
-rw-r--r--usr.sbin/smtpd/forward.c9
-rw-r--r--usr.sbin/smtpd/lka.c9
-rw-r--r--usr.sbin/smtpd/makemap.c4
-rw-r--r--usr.sbin/smtpd/map.c11
-rw-r--r--usr.sbin/smtpd/mda.c6
-rw-r--r--usr.sbin/smtpd/mfa.c5
-rw-r--r--usr.sbin/smtpd/mta.c5
-rw-r--r--usr.sbin/smtpd/queue.c9
-rw-r--r--usr.sbin/smtpd/showqueue.c11
-rw-r--r--usr.sbin/smtpd/smtp.c5
-rw-r--r--usr.sbin/smtpd/smtp_session.c4
-rw-r--r--usr.sbin/smtpd/smtpd.c3
-rw-r--r--usr.sbin/smtpd/ssl.c3
-rw-r--r--usr.sbin/smtpd/store.c11
-rw-r--r--usr.sbin/smtpd/util.c16
19 files changed, 20 insertions, 111 deletions
diff --git a/usr.sbin/smtpd/aliases.c b/usr.sbin/smtpd/aliases.c
index 49715ab5f47..9d58c0d7740 100644
--- a/usr.sbin/smtpd/aliases.c
+++ b/usr.sbin/smtpd/aliases.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aliases.c,v 1.12 2008/12/13 13:15:38 jacekm Exp $ */
+/* $OpenBSD: aliases.c,v 1.13 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -27,14 +27,9 @@
#include <errno.h>
#include <event.h>
#include <fcntl.h>
-#include <paths.h>
-#include <pwd.h>
-#include <signal.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <util.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/config.c b/usr.sbin/smtpd/config.c
index 4ee545be0ba..c7444af3160 100644
--- a/usr.sbin/smtpd/config.c
+++ b/usr.sbin/smtpd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.2 2008/11/05 12:14:45 sobrado Exp $ */
+/* $OpenBSD: config.c,v 1.3 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -21,10 +21,8 @@
#include <sys/tree.h>
#include <sys/param.h>
#include <sys/socket.h>
-#include <sys/time.h>
#include <event.h>
-#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c
index 6cfcea70d70..04370e980fc 100644
--- a/usr.sbin/smtpd/control.c
+++ b/usr.sbin/smtpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.4 2008/12/05 02:51:32 gilles Exp $ */
+/* $OpenBSD: control.c,v 1.5 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -29,7 +29,6 @@
#include <event.h>
#include <fcntl.h>
#include <pwd.h>
-#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr.sbin/smtpd/dns.c b/usr.sbin/smtpd/dns.c
index 9a57e6948d7..b738cfdbed3 100644
--- a/usr.sbin/smtpd/dns.c
+++ b/usr.sbin/smtpd/dns.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dns.c,v 1.6 2008/12/05 19:09:59 gilles Exp $ */
+/* $OpenBSD: dns.c,v 1.7 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -20,20 +20,16 @@
#include <sys/socket.h>
#include <sys/queue.h>
#include <sys/tree.h>
-#include <sys/time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <event.h>
-#include <netdb.h>
#include <resolv.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sysexits.h>
-#include <unistd.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/forward.c b/usr.sbin/smtpd/forward.c
index 4d986035065..8289d9678cf 100644
--- a/usr.sbin/smtpd/forward.c
+++ b/usr.sbin/smtpd/forward.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: forward.c,v 1.6 2008/12/13 13:15:38 jacekm Exp $ */
+/* $OpenBSD: forward.c,v 1.7 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -24,19 +24,12 @@
#include <sys/stat.h>
#include <ctype.h>
-#include <db.h>
#include <errno.h>
#include <event.h>
-#include <fcntl.h>
-#include <paths.h>
#include <pwd.h>
-#include <signal.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
-#include <util.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c
index cf29fd02c24..2e38c7aa619 100644
--- a/usr.sbin/smtpd/lka.c
+++ b/usr.sbin/smtpd/lka.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lka.c,v 1.11 2008/12/22 13:35:58 jacekm Exp $ */
+/* $OpenBSD: lka.c,v 1.12 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -22,23 +22,18 @@
#include <sys/tree.h>
#include <sys/param.h>
#include <sys/socket.h>
-#include <sys/time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <ctype.h>
-#include <db.h>
#include <event.h>
-#include <fcntl.h>
-#include <pwd.h>
#include <netdb.h>
-#include <signal.h>
+#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <util.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/makemap.c b/usr.sbin/smtpd/makemap.c
index 27e4e3cb160..d80be1ed0eb 100644
--- a/usr.sbin/smtpd/makemap.c
+++ b/usr.sbin/smtpd/makemap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: makemap.c,v 1.6 2008/12/21 12:59:05 jacekm Exp $ */
+/* $OpenBSD: makemap.c,v 1.7 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -21,7 +21,6 @@
#include <sys/tree.h>
#include <sys/queue.h>
#include <sys/param.h>
-
#include <sys/socket.h>
#include <ctype.h>
@@ -30,7 +29,6 @@
#include <errno.h>
#include <event.h>
#include <fcntl.h>
-#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr.sbin/smtpd/map.c b/usr.sbin/smtpd/map.c
index 9366d7a30d5..00a87f16a49 100644
--- a/usr.sbin/smtpd/map.c
+++ b/usr.sbin/smtpd/map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: map.c,v 1.3 2008/12/06 14:30:51 jacekm Exp $ */
+/* $OpenBSD: map.c,v 1.4 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -21,21 +21,12 @@
#include <sys/tree.h>
#include <sys/param.h>
#include <sys/socket.h>
-#include <sys/wait.h>
-#include <sys/stat.h>
#include <errno.h>
#include <event.h>
-#include <fcntl.h>
-#include <paths.h>
-#include <pwd.h>
-#include <signal.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sysexits.h>
-#include <unistd.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c
index 4bd6007c594..4f3fc862965 100644
--- a/usr.sbin/smtpd/mda.c
+++ b/usr.sbin/smtpd/mda.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mda.c,v 1.5 2008/12/13 23:19:34 jacekm Exp $ */
+/* $OpenBSD: mda.c,v 1.6 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -22,15 +22,11 @@
#include <sys/tree.h>
#include <sys/param.h>
#include <sys/socket.h>
-#include <sys/stat.h>
-#include <err.h>
#include <event.h>
#include <pwd.h>
-#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/mfa.c b/usr.sbin/smtpd/mfa.c
index 08d78c2ee1e..2be0f399fa9 100644
--- a/usr.sbin/smtpd/mfa.c
+++ b/usr.sbin/smtpd/mfa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfa.c,v 1.4 2008/12/20 00:18:03 gilles Exp $ */
+/* $OpenBSD: mfa.c,v 1.5 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -22,14 +22,11 @@
#include <sys/tree.h>
#include <sys/param.h>
#include <sys/socket.h>
-#include <sys/time.h>
#include <event.h>
#include <pwd.h>
-#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/mta.c b/usr.sbin/smtpd/mta.c
index 53959a29d87..4f3bf21f67a 100644
--- a/usr.sbin/smtpd/mta.c
+++ b/usr.sbin/smtpd/mta.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mta.c,v 1.11 2008/12/13 23:19:34 jacekm Exp $ */
+/* $OpenBSD: mta.c,v 1.12 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -28,11 +28,8 @@
#include <errno.h>
#include <event.h>
-#include <fcntl.h>
#include <pwd.h>
-#include <signal.h>
#include <stdio.h>
-#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c
index f8172a7c6fc..9f5f366607c 100644
--- a/usr.sbin/smtpd/queue.c
+++ b/usr.sbin/smtpd/queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.c,v 1.39 2008/12/31 09:55:24 jacekm Exp $ */
+/* $OpenBSD: queue.c,v 1.40 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -23,22 +23,15 @@
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/stat.h>
-#include <sys/time.h>
-
-#include <netinet/in.h>
-#include <arpa/inet.h>
#include <dirent.h>
#include <errno.h>
#include <event.h>
#include <fcntl.h>
-#include <netdb.h>
#include <pwd.h>
-#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/showqueue.c b/usr.sbin/smtpd/showqueue.c
index fc8cbb27337..d24aa9cf2fd 100644
--- a/usr.sbin/smtpd/showqueue.c
+++ b/usr.sbin/smtpd/showqueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: showqueue.c,v 1.3 2008/12/22 13:28:10 jacekm Exp $ */
+/* $OpenBSD: showqueue.c,v 1.4 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -21,25 +21,16 @@
#include <sys/tree.h>
#include <sys/param.h>
#include <sys/socket.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-
-#include <netinet/in.h>
-#include <arpa/inet.h>
#include <dirent.h>
#include <err.h>
#include <errno.h>
#include <event.h>
#include <fcntl.h>
-#include <netdb.h>
#include <pwd.h>
-#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
-#include <unistd.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/smtp.c b/usr.sbin/smtpd/smtp.c
index 3ffb8544124..80e24c3cce6 100644
--- a/usr.sbin/smtpd/smtp.c
+++ b/usr.sbin/smtpd/smtp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp.c,v 1.13 2008/12/26 10:28:31 jacekm Exp $ */
+/* $OpenBSD: smtp.c,v 1.14 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -25,13 +25,10 @@
#include <ctype.h>
#include <event.h>
-#include <fcntl.h>
#include <pwd.h>
-#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index 35efdb2ca70..e904961b471 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.37 2008/12/22 13:21:39 jacekm Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.38 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -31,11 +31,9 @@
#include <event.h>
#include <pwd.h>
#include <regex.h>
-#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
#include <keynote.h>
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index 273fff535f0..0f0677153b5 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.20 2008/12/27 17:03:29 jacekm Exp $ */
+/* $OpenBSD: smtpd.c,v 1.21 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -34,7 +34,6 @@
#include <pwd.h>
#include <regex.h>
#include <signal.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr.sbin/smtpd/ssl.c b/usr.sbin/smtpd/ssl.c
index 3c2cefedbb7..8b508c14c19 100644
--- a/usr.sbin/smtpd/ssl.c
+++ b/usr.sbin/smtpd/ssl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.c,v 1.4 2008/12/11 23:01:16 gilles Exp $ */
+/* $OpenBSD: ssl.c,v 1.5 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -29,7 +29,6 @@
#include <event.h>
#include <fcntl.h>
#include <pwd.h>
-#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr.sbin/smtpd/store.c b/usr.sbin/smtpd/store.c
index a2dda136bf4..f51550cb317 100644
--- a/usr.sbin/smtpd/store.c
+++ b/usr.sbin/smtpd/store.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: store.c,v 1.8 2008/12/06 14:30:51 jacekm Exp $ */
+/* $OpenBSD: store.c,v 1.9 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -21,25 +21,16 @@
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/tree.h>
-#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <dirent.h>
#include <errno.h>
#include <event.h>
-#include <fcntl.h>
-#include <paths.h>
-#include <pwd.h>
-#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sysexits.h>
-#include <time.h>
-#include <util.h>
#include <unistd.h>
#include "smtpd.h"
diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c
index f6b8aad1091..d4be850fbd9 100644
--- a/usr.sbin/smtpd/util.c
+++ b/usr.sbin/smtpd/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.3 2008/12/19 12:09:00 jacekm Exp $ */
+/* $OpenBSD: util.c,v 1.4 2009/01/01 16:15:47 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -17,29 +17,15 @@
*/
#include <sys/types.h>
-#include <sys/stat.h>
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/tree.h>
-#include <sys/ioctl.h>
#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-#include <dirent.h>
#include <errno.h>
#include <event.h>
-#include <fcntl.h>
-#include <paths.h>
-#include <pwd.h>
-#include <signal.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include <sysexits.h>
-#include <time.h>
-#include <util.h>
#include <unistd.h>
#include "smtpd.h"