1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Remove redundant includes

This commit is contained in:
Brian Somers 1998-06-27 14:18:15 +00:00
parent 615ad4f957
commit 10a9be1e88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37192
17 changed files with 26 additions and 63 deletions

View File

@ -2,7 +2,7 @@
* The code in this file was written by Eivind Eklund <perhaps@yes.no>,
* who places it in the public domain without restriction.
*
* $Id: alias_cmd.c,v 1.14 1998/06/15 19:05:59 brian Exp $
* $Id: alias_cmd.c,v 1.15 1998/06/27 14:17:23 brian Exp $
*/
#include <sys/types.h>
@ -11,7 +11,6 @@
#include <netdb.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
#include <sys/un.h>

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: bundle.c,v 1.25 1998/06/27 12:03:46 brian Exp $
* $Id: bundle.c,v 1.26 1998/06/27 14:17:23 brian Exp $
*/
#include <sys/param.h>
@ -43,7 +43,6 @@
#include <errno.h>
#include <fcntl.h>
#include <paths.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -77,7 +76,6 @@
#include "async.h"
#include "physical.h"
#include "modem.h"
#include "loadalias.h"
#include "auth.h"
#include "lcpproto.h"
#include "chap.h"

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: chap.c,v 1.31 1998/05/21 21:44:25 brian Exp $
* $Id: chap.c,v 1.32 1998/05/21 22:55:02 brian Exp $
*
* TODO:
*/
@ -27,10 +27,11 @@
#include <netinet/ip.h>
#include <sys/un.h>
#ifdef HAVE_DES
#include <md4.h>
#endif
#include <md5.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include "mbuf.h"
@ -58,7 +59,9 @@
#include "bundle.h"
#include "chat.h"
#include "datalink.h"
#ifdef HAVE_DES
#include "chap_ms.h"
#endif
static const char *chapcodes[] = {
"???", "CHALLENGE", "RESPONSE", "SUCCESS", "FAILURE"

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: chat.c,v 1.48 1998/06/15 19:06:38 brian Exp $
* $Id: chat.c,v 1.49 1998/06/24 19:33:31 brian Exp $
*/
#include <sys/types.h>
@ -35,7 +35,6 @@
#include <errno.h>
#include <fcntl.h>
#include <paths.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: command.c,v 1.149 1998/06/25 22:33:15 brian Exp $
* $Id: command.c,v 1.150 1998/06/27 14:17:24 brian Exp $
*
*/
#include <sys/types.h>
@ -36,7 +36,6 @@
#include <errno.h>
#include <fcntl.h>
#include <paths.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -61,7 +60,6 @@
#endif
#include "lqr.h"
#include "hdlc.h"
#include "loadalias.h"
#include "systems.h"
#include "filter.h"
#include "descriptor.h"
@ -124,7 +122,7 @@
#define NEG_DNS 50
const char Version[] = "2.0-beta";
const char VersionDate[] = "$Date: 1998/06/25 22:33:15 $";
const char VersionDate[] = "$Date: 1998/06/27 14:17:24 $";
static int ShowCommand(struct cmdargs const *);
static int TerminalCommand(struct cmdargs const *);

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: datalink.c,v 1.12 1998/06/24 19:33:31 brian Exp $
* $Id: datalink.c,v 1.13 1998/06/25 22:33:17 brian Exp $
*/
#include <sys/types.h>
@ -38,7 +38,6 @@
#include <string.h>
#include <sys/uio.h>
#include <termios.h>
#include <unistd.h>
#include "mbuf.h"
#include "log.h"

View File

@ -23,14 +23,16 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: defs.c,v 1.15 1998/05/29 18:32:11 brian Exp $
* $Id: defs.c,v 1.16 1998/06/15 19:06:41 brian Exp $
*/
#include <stdlib.h>
#include <string.h>
#include <sys/errno.h>
#if !defined(__FreeBSD__) || __FreeBSD__ < 3
#include <time.h>
#endif
#include <unistd.h>
#include "defs.h"

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: ip.c,v 1.45 1998/06/27 12:03:36 brian Exp $
* $Id: ip.c,v 1.46 1998/06/27 14:17:26 brian Exp $
*
* TODO:
* o Return ICMP message for filterd packet
@ -50,7 +50,6 @@
#include "fsm.h"
#include "lqr.h"
#include "hdlc.h"
#include "loadalias.h"
#include "throughput.h"
#include "iplist.h"
#include "slcompress.h"

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: ipcp.c,v 1.58 1998/06/25 22:33:25 brian Exp $
* $Id: ipcp.c,v 1.59 1998/06/27 14:17:27 brian Exp $
*
* TODO:
* o More RFC1772 backward compatibility
@ -58,7 +58,6 @@
#include "ipcp.h"
#include "filter.h"
#include "descriptor.h"
#include "loadalias.h"
#include "vjcomp.h"
#include "lqr.h"
#include "hdlc.h"

View File

@ -17,13 +17,12 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: main.c,v 1.137 1998/06/27 12:03:37 brian Exp $
* $Id: main.c,v 1.138 1998/06/27 14:17:28 brian Exp $
*
* TODO:
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
@ -59,13 +58,10 @@
#include "link.h"
#include "mp.h"
#include "bundle.h"
#include "loadalias.h"
#include "auth.h"
#include "systems.h"
#include "ip.h"
#include "sig.h"
#include "main.h"
#include "tun.h"
#include "server.h"
#include "prompt.h"
#include "chat.h"

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: modem.c,v 1.92 1998/06/18 22:43:18 brian Exp $
* $Id: modem.c,v 1.93 1998/06/24 19:33:32 brian Exp $
*
* TODO:
*/
@ -75,7 +75,6 @@
#include "auth.h"
#include "chap.h"
#include "datalink.h"
#include "systems.h"
static int modem_DescriptorWrite(struct descriptor *, struct bundle *,

View File

@ -2,7 +2,7 @@
* The code in this file was written by Eivind Eklund <perhaps@yes.no>,
* who places it in the public domain without restriction.
*
* $Id: alias_cmd.c,v 1.14 1998/06/15 19:05:59 brian Exp $
* $Id: alias_cmd.c,v 1.15 1998/06/27 14:17:23 brian Exp $
*/
#include <sys/types.h>
@ -11,7 +11,6 @@
#include <netdb.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
#include <sys/un.h>

View File

@ -16,12 +16,10 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: physical.c,v 1.2 1998/05/21 21:47:37 brian Exp $
* $Id: physical.c,v 1.3 1998/05/23 22:24:47 brian Exp $
*
*/
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -23,14 +23,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: probe.c,v 1.1 1998/06/24 19:36:36 brian Exp $
*/
#include <sys/types.h>
/*
#include <string.h>
*/
#include <sys/time.h>
#include <unistd.h>

View File

@ -23,15 +23,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: server.c,v 1.20 1998/06/16 19:40:41 brian Exp $
* $Id: server.c,v 1.21 1998/06/24 19:33:36 brian Exp $
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <sys/un.h>
#include <errno.h>
@ -41,27 +39,11 @@
#include <termios.h>
#include <unistd.h>
#include "mbuf.h"
#include "log.h"
#include "defs.h"
#include "descriptor.h"
#include "server.h"
#include "id.h"
#include "prompt.h"
#include "timer.h"
#include "lqr.h"
#include "hdlc.h"
#include "fsm.h"
#include "lcp.h"
#include "ccp.h"
#include "throughput.h"
#include "link.h"
#include "mp.h"
#include "iplist.h"
#include "slcompress.h"
#include "ipcp.h"
#include "filter.h"
#include "bundle.h"
static int
server_UpdateSet(struct descriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)

View File

@ -17,17 +17,15 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: timer.c,v 1.29 1998/06/15 19:06:56 brian Exp $
* $Id: timer.c,v 1.30 1998/06/20 01:36:38 brian Exp $
*
* TODO:
*/
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <sys/time.h>
#include <termios.h>
#include <unistd.h>
#include "log.h"
#include "sig.h"

View File

@ -23,12 +23,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: tun.c,v 1.6.4.18 1998/05/06 23:50:22 brian Exp $
* $Id: tun.c,v 1.7 1998/05/21 21:48:52 brian Exp $
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <sys/socket.h> /* For IFF_ defines */
#include <net/if.h> /* For IFF_ defines */
#include <netinet/in.h>
#include <net/if_tun.h>
#include <netinet/in_systm.h>