diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-07-06 16:12:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-07-06 16:12:17 +0000 |
commit | 8f113895dfd492546901260887a5b28ddda8a28d (patch) | |
tree | e8d22c6cf02c03607e572e28fb0a39db3f310510 | |
parent | e0219ce1f0e453e87a073096adedb0ab81fe61fc (diff) |
Remove some unneeded includes. OK deraadt@
-rw-r--r-- | usr.sbin/syslogd/evbuffer_tls.c | 3 | ||||
-rw-r--r-- | usr.sbin/syslogd/privsep.c | 8 | ||||
-rw-r--r-- | usr.sbin/syslogd/privsep_fdpass.c | 9 | ||||
-rw-r--r-- | usr.sbin/syslogd/ringbuf.c | 3 | ||||
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 6 | ||||
-rw-r--r-- | usr.sbin/syslogd/syslogd.h | 4 | ||||
-rw-r--r-- | usr.sbin/syslogd/ttymsg.c | 4 |
7 files changed, 9 insertions, 28 deletions
diff --git a/usr.sbin/syslogd/evbuffer_tls.c b/usr.sbin/syslogd/evbuffer_tls.c index 31b3f4399de..6c164bdf67c 100644 --- a/usr.sbin/syslogd/evbuffer_tls.c +++ b/usr.sbin/syslogd/evbuffer_tls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evbuffer_tls.c,v 1.3 2015/02/20 00:56:32 bluhm Exp $ */ +/* $OpenBSD: evbuffer_tls.c,v 1.4 2015/07/06 16:12:16 millert Exp $ */ /* * Copyright (c) 2002-2004 Niels Provos <provos@citi.umich.edu> @@ -37,7 +37,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <stdarg.h> #include <tls.h> #include "evbuffer_tls.h" diff --git a/usr.sbin/syslogd/privsep.c b/usr.sbin/syslogd/privsep.c index 4b637061b30..a456b97465f 100644 --- a/usr.sbin/syslogd/privsep.c +++ b/usr.sbin/syslogd/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.52 2015/06/30 12:03:32 bluhm Exp $ */ +/* $OpenBSD: privsep.c,v 1.53 2015/07/06 16:12:16 millert Exp $ */ /* * Copyright (c) 2003 Anil Madhavapeddy <anil@recoil.org> @@ -16,11 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <sys/ioctl.h> #include <sys/queue.h> -#include <sys/uio.h> -#include <sys/types.h> -#include <sys/socket.h> #include <sys/stat.h> #include <sys/wait.h> @@ -30,14 +26,12 @@ #include <limits.h> #include <netdb.h> #include <paths.h> -#include <poll.h> #include <pwd.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <util.h> #include <utmp.h> #include "syslogd.h" diff --git a/usr.sbin/syslogd/privsep_fdpass.c b/usr.sbin/syslogd/privsep_fdpass.c index 4ae2ee272fd..94f32d199b5 100644 --- a/usr.sbin/syslogd/privsep_fdpass.c +++ b/usr.sbin/syslogd/privsep_fdpass.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep_fdpass.c,v 1.9 2015/01/16 06:40:21 deraadt Exp $ */ +/* $OpenBSD: privsep_fdpass.c,v 1.10 2015/07/06 16:12:16 millert Exp $ */ /* * Copyright 2001 Niels Provos <provos@citi.umich.edu> @@ -32,18 +32,13 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include <sys/uio.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <sys/stat.h> #include <err.h> #include <errno.h> -#include <fcntl.h> -#include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> + #include "syslogd.h" void diff --git a/usr.sbin/syslogd/ringbuf.c b/usr.sbin/syslogd/ringbuf.c index 1af7d7d6fa0..a7259f18d07 100644 --- a/usr.sbin/syslogd/ringbuf.c +++ b/usr.sbin/syslogd/ringbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ringbuf.c,v 1.8 2015/01/16 06:40:21 deraadt Exp $ */ +/* $OpenBSD: ringbuf.c,v 1.9 2015/07/06 16:12:16 millert Exp $ */ /* * Copyright (c) 2004 Damien Miller @@ -20,7 +20,6 @@ * Simple ringbuffer for lines of text. */ -#include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 8548d511338..67ca3107db6 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.169 2015/07/05 22:05:12 bluhm Exp $ */ +/* $OpenBSD: syslogd.c,v 1.170 2015/07/06 16:12:16 millert Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -68,11 +68,8 @@ #include <sys/ioctl.h> #include <sys/stat.h> -#include <sys/wait.h> -#include <sys/socket.h> #include <sys/msgbuf.h> #include <sys/queue.h> -#include <sys/uio.h> #include <sys/sysctl.h> #include <sys/un.h> #include <sys/time.h> @@ -89,7 +86,6 @@ #include <fcntl.h> #include <limits.h> #include <paths.h> -#include <poll.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> diff --git a/usr.sbin/syslogd/syslogd.h b/usr.sbin/syslogd/syslogd.h index 04d64555946..ac2415c49e3 100644 --- a/usr.sbin/syslogd/syslogd.h +++ b/usr.sbin/syslogd/syslogd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.h,v 1.17 2015/06/30 12:03:32 bluhm Exp $ */ +/* $OpenBSD: syslogd.h,v 1.18 2015/07/06 16:12:16 millert Exp $ */ /* * Copyright (c) 2003 Anil Madhavapeddy <anil@recoil.org> @@ -18,7 +18,7 @@ #include <sys/types.h> #include <sys/socket.h> -#include <sys/poll.h> +#include <sys/uio.h> /* Privilege separation */ int priv_init(char *, int, int, int, char **); diff --git a/usr.sbin/syslogd/ttymsg.c b/usr.sbin/syslogd/ttymsg.c index a611218cedd..2e23d8bf68d 100644 --- a/usr.sbin/syslogd/ttymsg.c +++ b/usr.sbin/syslogd/ttymsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ttymsg.c,v 1.6 2015/01/16 06:40:21 deraadt Exp $ */ +/* $OpenBSD: ttymsg.c,v 1.7 2015/07/06 16:12:16 millert Exp $ */ /* $NetBSD: ttymsg.c,v 1.3 1994/11/17 07:17:55 jtc Exp $ */ /* @@ -32,8 +32,6 @@ #include <sys/param.h> /* nitems */ #include <sys/stat.h> -#include <sys/types.h> -#include <sys/uio.h> #include <signal.h> #include <fcntl.h> |