From 9ed32aae0cceb23373b55a319a3483728a1042d7 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 1 Nov 1996 17:34:44 +0000 Subject: Header cleanup. svn path=/trunk/; revision=463 --- configure.in | 4 ++-- daemon.c | 12 ++++-------- driver.c | 2 +- fetchmail.c | 15 ++------------- options.c | 2 +- pop3.c | 2 +- smtp.c | 3 +-- socket.c | 4 ---- uid.c | 2 +- xmalloc.c | 1 - 10 files changed, 13 insertions(+), 34 deletions(-) diff --git a/configure.in b/configure.in index 2c5f573d..ee435b1d 100644 --- a/configure.in +++ b/configure.in @@ -86,8 +86,8 @@ AC_TRY_COMPILE([], [AC_DEFINE(HAVE_PROTOTYPES) AC_MSG_RESULT(yes)], AC_MSG_RESULT(no)) -dnl Check out the wait reality. -AC_CHECK_HEADERS(sys/wait.h) AC_CHECK_FUNCS(waitpid wait3) +dnl Check out the wait reality. We have to assume sys/wait.h is present. +AC_CHECK_FUNCS(waitpid wait3) AC_MSG_CHECKING(for union wait); AC_TRY_LINK([#include #include ], diff --git a/daemon.c b/daemon.c index ead23641..2995f1ef 100644 --- a/daemon.c +++ b/daemon.c @@ -7,18 +7,14 @@ #include #include +#include #include #include #include -#include -#include - -#if defined(HAVE_SYS_WAIT_H) -# include -#endif +#include #if defined(HAVE_UNISTD_H) -# include +#include #endif #if defined(STDC_HEADERS) @@ -26,7 +22,7 @@ #endif #if defined(QNX) -# include +#include #endif /* BSD portability hack */ diff --git a/driver.c b/driver.c index a8284a30..84e557f3 100644 --- a/driver.c +++ b/driver.c @@ -10,9 +10,9 @@ #include #include #include +#include #if defined(STDC_HEADERS) #include -#include #endif #if defined(HAVE_UNISTD_H) #include diff --git a/fetchmail.c b/fetchmail.c index 7d54fd7d..90a82c85 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -5,29 +5,18 @@ */ #include -#include -#include -#include +#include #if defined(STDC_HEADERS) #include -#include #endif - #if defined(HAVE_UNISTD_H) #include #endif - +#include #include #include -#include - -#include -#include -#include -#include #include -#include #ifdef HAVE_GETHOSTBYNAME #include diff --git a/options.c b/options.c index f60747d9..31ca26eb 100644 --- a/options.c +++ b/options.c @@ -5,7 +5,7 @@ */ #include -#include + #include #include #if defined(STDC_HEADERS) diff --git a/pop3.c b/pop3.c index 0960085d..4df8473a 100644 --- a/pop3.c +++ b/pop3.c @@ -5,9 +5,9 @@ */ #include + #include #include -#include #if defined(HAVE_UNISTD_H) #include #endif diff --git a/smtp.c b/smtp.c index 475b847a..f1908f81 100644 --- a/smtp.c +++ b/smtp.c @@ -9,9 +9,8 @@ * For license terms, see the file COPYING in this directory. */ -#include #include -#include +#include #include #include #include "socket.h" diff --git a/socket.c b/socket.c index 7a98f83f..f0020adf 100644 --- a/socket.c +++ b/socket.c @@ -7,14 +7,11 @@ #include #include -#include #include #include -#include #include #include #if defined(STDC_HEADERS) -#include #include #endif #if defined(HAVE_UNISTD_H) @@ -25,7 +22,6 @@ #else #include #endif -#include #include "socket.h" FILE *Socket(host, clientPort) diff --git a/uid.c b/uid.c index 25730390..f79c2ff0 100644 --- a/uid.c +++ b/uid.c @@ -7,10 +7,10 @@ #include #include +#include #if defined(STDC_HEADERS) #include -#include #endif #if defined(HAVE_UNISTD_H) diff --git a/xmalloc.c b/xmalloc.c index 10b3d7e1..a58748a4 100644 --- a/xmalloc.c +++ b/xmalloc.c @@ -7,7 +7,6 @@ #include #include #include -#include #if defined(STDC_HEADERS) #include #endif -- cgit v1.2.3