1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00

remove duplicate includes

This commit is contained in:
jsg 2023-04-19 12:58:15 +00:00
parent 93f6aaeac3
commit 6bae335dd0
22 changed files with 20 additions and 51 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: mib.c,v 1.2 2022/10/16 13:33:10 jsg Exp $ */
/* $OpenBSD: mib.c,v 1.3 2023/04/19 12:58:15 jsg Exp $ */
/*
* Copyright (c) 2022 Martijn van Duren <martijn@openbsd.org>
@ -57,7 +57,6 @@
#include <syslog.h>
#include <time.h>
#include <unistd.h>
#include <pwd.h>
#include <libgen.h>
#include <limits.h>
#include <kvm.h>

View File

@ -1,4 +1,4 @@
/* $OpenBSD: spamd.c,v 1.159 2023/01/14 07:36:16 tb Exp $ */
/* $OpenBSD: spamd.c,v 1.160 2023/04/19 12:58:15 jsg Exp $ */
/*
* Copyright (c) 2015 Henning Brauer <henning@openbsd.org>
@ -39,7 +39,6 @@
#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include <limits.h>
#include <tls.h>
#include <netdb.h>

View File

@ -1,4 +1,4 @@
/* $OpenBSD: t_kevent.c,v 1.2 2021/12/13 16:56:48 deraadt Exp $ */
/* $OpenBSD: t_kevent.c,v 1.3 2023/04/19 12:58:15 jsg Exp $ */
/* $NetBSD: t_kevent.c,v 1.9 2020/10/31 01:08:32 christos Exp $ */
/*-
@ -46,7 +46,6 @@
#ifndef __OpenBSD__
#include <sys/drvctlio.h>
#endif
#include <sys/event.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/wait.h>

View File

@ -25,7 +25,6 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "test_helper.h"

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ldattach.c,v 1.19 2023/03/08 04:43:06 guenther Exp $ */
/* $OpenBSD: ldattach.c,v 1.20 2023/04/19 12:58:15 jsg Exp $ */
/*
* Copyright (c) 2007, 2008 Marc Balmer <mbalmer@openbsd.org>
@ -27,7 +27,6 @@
#include <sys/limits.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <err.h>
#include <errno.h>

View File

@ -1,4 +1,4 @@
/* $OpenBSD: shutdown.c,v 1.54 2023/01/13 07:02:16 cheloha Exp $ */
/* $OpenBSD: shutdown.c,v 1.55 2023/04/19 12:58:15 jsg Exp $ */
/* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */
/*
@ -33,7 +33,6 @@
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/syslog.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <ctype.h>

View File

@ -1,4 +1,4 @@
/* $OpenBSD: pool.c,v 1.3 2017/08/29 21:10:20 deraadt Exp $ */
/* $OpenBSD: pool.c,v 1.4 2023/04/19 12:58:15 jsg Exp $ */
/*
* Copyright (c) 2017 Martin Pieuchot
@ -18,7 +18,6 @@
#ifndef NOPOOL
#include <sys/types.h>
#include <sys/types.h>
#include <sys/queue.h>

View File

@ -22,7 +22,6 @@
#include <dirent.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>

View File

@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: hash.h,v 1.4 2020/09/14 08:40:44 florian Exp $ */
/* $Id: hash.h,v 1.5 2023/04/19 12:58:15 jsg Exp $ */
#ifndef ISC_HASH_H
#define ISC_HASH_H 1
@ -73,12 +73,6 @@
* None.
*/
/***
*** Imports
***/
#include <isc/types.h>
/***
*** Functions
***/

View File

@ -1,4 +1,4 @@
/* $OpenBSD: nfs.c,v 1.8 2019/06/28 13:35:04 deraadt Exp $ */
/* $OpenBSD: nfs.c,v 1.9 2023/04/19 12:58:15 jsg Exp $ */
/*
* Copyright (c) 2009 Jasper Lievisse Adriaanse <jasper@openbsd.org>
@ -21,7 +21,6 @@
#include <sys/mount.h>
#include <sys/signal.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <nfs/rpcv2.h>
#include <nfs/nfsproto.h>
#include <nfs/nfs.h>

View File

@ -1,4 +1,4 @@
/* $OpenBSD: strnsubst.c,v 1.7 2019/07/03 03:24:02 deraadt Exp $ */
/* $OpenBSD: strnsubst.c,v 1.8 2023/04/19 12:58:16 jsg Exp $ */
/* $FreeBSD: strnsubst.c,v 1.6 2002/06/22 12:58:42 jmallett Exp $ */
/*
@ -67,7 +67,6 @@ done:
}
#ifdef TEST
#include <stdio.h>
int
main(void)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: log.c,v 1.9 2021/01/19 10:51:35 claudio Exp $ */
/* $OpenBSD: log.c,v 1.10 2023/04/19 12:58:16 jsg Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -28,8 +28,6 @@
#include <syslog.h>
#include <time.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "eigrpd.h"
#include "log.h"

View File

@ -1,4 +1,4 @@
/* $OpenBSD: inetd.c,v 1.163 2022/12/04 23:50:50 cheloha Exp $ */
/* $OpenBSD: inetd.c,v 1.164 2023/04/19 12:58:16 jsg Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
@ -1489,7 +1489,6 @@ discard_dg(int s, struct servtab *sep)
(void) read(s, buffer, sizeof(buffer));
}
#include <ctype.h>
#define LINESIZ 72
char ring[128];
char *endring;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: radish.c,v 1.7 2021/03/29 03:54:39 yasuoka Exp $ */
/* $OpenBSD: radish.c,v 1.8 2023/04/19 12:58:16 jsg Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* All rights reserved.
@ -48,9 +48,7 @@
#include "radish.h"
#include <netinet/in.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <stdio.h>
#define FATAL(x) \

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ntp_dns.c,v 1.27 2021/10/24 21:24:19 deraadt Exp $ */
/* $OpenBSD: ntp_dns.c,v 1.28 2023/04/19 12:58:16 jsg Exp $ */
/*
* Copyright (c) 2003-2008 Henning Brauer <henning@openbsd.org>
@ -23,8 +23,6 @@
#include <arpa/nameser.h>
#include <resolv.h>
#include <netinet/in.h>
#include <err.h>
#include <errno.h>
#include <poll.h>
@ -33,7 +31,6 @@
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <resolv.h>
#include <unistd.h>
#include "ntpd.h"

View File

@ -1,4 +1,4 @@
/* $Id: http.c,v 1.16 2022/12/15 08:07:03 florian Exp $ */
/* $Id: http.c,v 1.17 2023/04/19 12:58:16 jsg Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@ -33,7 +33,6 @@
#include <unistd.h>
#include "http.h"
#include <tls.h>
/*
* A buffer for transferring HTTP/S data.

View File

@ -1,4 +1,4 @@
/* $OpenBSD: pwd_mkdb.c,v 1.60 2022/12/04 23:50:51 cheloha Exp $ */
/* $OpenBSD: pwd_mkdb.c,v 1.61 2023/04/19 12:58:16 jsg Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@ -47,7 +47,6 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <util.h>
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))

View File

@ -1,4 +1,4 @@
/* $OpenBSD: rad.c,v 1.28 2022/10/15 13:26:15 florian Exp $ */
/* $OpenBSD: rad.c,v 1.29 2023/04/19 12:58:16 jsg Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@ -28,7 +28,6 @@
#include <netinet/in.h>
#include <net/if.h>
#include <net/route.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <netinet6/in6_var.h>
#include <netinet/icmp6.h>

View File

@ -1,4 +1,4 @@
/* $OpenBSD: output.c,v 1.29 2022/12/15 12:02:29 claudio Exp $ */
/* $OpenBSD: output.c,v 1.30 2023/04/19 12:58:16 jsg Exp $ */
/*
* Copyright (c) 2019 Theo de Raadt <deraadt@openbsd.org>
*
@ -51,7 +51,6 @@
#include <signal.h>
#include <string.h>
#include <limits.h>
#include <unistd.h>
#include <time.h>
#include "extern.h"

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parser.c,v 1.1 2017/04/10 13:35:42 florian Exp $ */
/* $OpenBSD: parser.c,v 1.2 2023/04/19 12:58:16 jsg Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@ -24,7 +24,6 @@
#include <arpa/inet.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <err.h>

View File

@ -1,5 +1,5 @@
/* $NetBSD: loadfile.c,v 1.10 2000/12/03 02:53:04 tsutsui Exp $ */
/* $OpenBSD: loadfile_elf.c,v 1.45 2022/12/28 21:30:19 jmc Exp $ */
/* $OpenBSD: loadfile_elf.c,v 1.46 2023/04/19 12:58:16 jsg Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -94,7 +94,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <err.h>
#include <errno.h>
#include <stddef.h>
#include <machine/vmmvar.h>

View File

@ -1,4 +1,4 @@
/* $OpenBSD: vmd.c,v 1.140 2023/04/16 12:47:26 dv Exp $ */
/* $OpenBSD: vmd.c,v 1.141 2023/04/19 12:58:16 jsg Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@ -38,7 +38,6 @@
#include <unistd.h>
#include <util.h>
#include <ctype.h>
#include <pwd.h>
#include <grp.h>
#include <machine/specialreg.h>