Skip to content

Commit

Permalink
Remove some duplicate includes in bin/, games/ and lib/.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Wildner committed May 14, 2011
1 parent 27ebe7f commit cc609d8
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 28 deletions.
2 changes: 0 additions & 2 deletions bin/hostname/hostname.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
* @(#) Copyright (c) 1988, 1993 The Regents of the University of California. All rights reserved.
* @(#)hostname.c 8.1 (Berkeley) 5/31/93
* $FreeBSD: src/bin/hostname/hostname.c,v 1.10.2.1 2001/08/01 02:40:23 obrien Exp $
* $DragonFly: src/bin/hostname/hostname.c,v 1.14 2008/09/02 22:20:55 swildner Exp $
*/

#include <sys/param.h>
Expand All @@ -59,7 +58,6 @@

#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>

#include <errno.h>
Expand Down
2 changes: 0 additions & 2 deletions bin/rcp/rcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
* @(#) Copyright (c) 1983, 1990, 1992, 1993 The Regents of the University of California. All rights reserved.
* @(#)rcp.c 8.2 (Berkeley) 4/2/94
* $FreeBSD: src/bin/rcp/rcp.c,v 1.26.2.6 2004/09/16 12:16:10 delphij Exp $
* $DragonFly: src/bin/rcp/rcp.c,v 1.6 2005/01/07 20:30:21 dillon Exp $
*/

#include <sys/cdefs.h>
Expand All @@ -66,7 +65,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <unistd.h>

#include "extern.h"
Expand Down
2 changes: 0 additions & 2 deletions games/grdc/grdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* 03-23-04 added centering, scroll delay (cap)
*
* $FreeBSD: src/games/grdc/grdc.c,v 1.8.2.1 2001/10/02 11:51:49 ru Exp $
* $DragonFly: src/games/grdc/grdc.c,v 1.6 2007/04/18 18:32:12 swildner Exp $
*/

#include <err.h>
Expand All @@ -20,7 +19,6 @@
#ifndef NONPOSIX
#include <unistd.h>
#endif
#include <time.h>

#define XLENGTH 58
#define YDEPTH 7
Expand Down
2 changes: 0 additions & 2 deletions games/snake/snake/snake.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* @(#) Copyright (c) 1980, 1993 The Regents of the University of California. All rights reserved.
* @(#)snake.c 8.2 (Berkeley) 1/7/94
* $FreeBSD: src/games/snake/snake/snake.c,v 1.11.2.1 2000/08/17 06:21:44 jhb Exp $
* $DragonFly: src/games/snake/snake/snake.c,v 1.4 2006/09/03 23:47:56 pavalos Exp $
*/

/*
Expand All @@ -56,7 +55,6 @@
#include <math.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>

Expand Down
3 changes: 0 additions & 3 deletions lib/libc/rpc/bindresvport.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
* @(#)bindresvport.c 2.2 88/07/29 4.0 RPCSRC
* $NetBSD: bindresvport.c,v 1.19 2000/07/06 03:03:59 christos Exp $
* $FreeBSD: src/lib/libc/rpc/bindresvport.c,v 1.16 2004/10/16 06:11:34 obrien Exp $
* $DragonFly: src/lib/libc/rpc/bindresvport.c,v 1.4 2005/11/13 12:27:04 swildner Exp $
*/

/*
Expand All @@ -50,8 +49,6 @@
#include <unistd.h>

#include <rpc/rpc.h>

#include <string.h>
#include "un-namespace.h"

/*
Expand Down
2 changes: 0 additions & 2 deletions lib/libc/rpc/key_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
*
* @(#)key_call.c 1.25 94/04/24 SMI
* $FreeBSD: src/lib/libc/rpc/key_call.c,v 1.16 2006/02/27 22:10:59 deischen Exp $
* $DragonFly: src/lib/libc/rpc/key_call.c,v 1.6 2005/11/13 12:27:04 swildner Exp $
*/

/*
Expand All @@ -56,7 +55,6 @@
#include <string.h>
#include <netconfig.h>
#include <sys/utsname.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/fcntl.h>
Expand Down
1 change: 0 additions & 1 deletion lib/libc/rpc/rpc_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <syslog.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Expand Down
2 changes: 0 additions & 2 deletions lib/libc_r/uthread/uthread_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
* SUCH DAMAGE.
*
* $FreeBSD: src/lib/libc_r/uthread/uthread_gc.c,v 1.11.2.5 2002/10/22 14:44:03 fjoe Exp $
* $DragonFly: src/lib/libc_r/uthread/uthread_gc.c,v 1.3 2005/04/28 18:16:47 joerg Exp $
*
* Garbage collector thread. Frees memory allocated for dead threads.
*
Expand All @@ -40,7 +39,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <pthread.h>
#include "pthread_private.h"
Expand Down
3 changes: 0 additions & 3 deletions lib/libcompat/4.3/regex.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
* SUCH DAMAGE.
*
* @(#)regex.c 5.1 (Berkeley) 3/29/92
*
* $DragonFly: src/lib/libcompat/4.3/regex.c,v 1.3 2008/09/30 16:57:04 swildner Exp $
*/

/*
Expand All @@ -50,7 +48,6 @@
#include <regexp.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>

static regexp *re_regexp;
static int re_goterr;
Expand Down
2 changes: 0 additions & 2 deletions lib/libcompat/4.3/rexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* SUCH DAMAGE.
*
* $FreeBSD: src/lib/libcompat/4.3/rexec.c,v 1.5.8.3 2000/11/22 13:36:00 ben Exp $
* $DragonFly: src/lib/libcompat/4.3/rexec.c,v 1.6 2008/10/05 18:26:41 swildner Exp $
*
* @(#)rexec.c 8.1 (Berkeley) 6/4/93
*/
Expand All @@ -52,7 +51,6 @@
#include <ctype.h>
#include <err.h>
#include <stdlib.h>
#include <unistd.h>

int rexecoptions;
char *getpass(), *getlogin();
Expand Down
2 changes: 0 additions & 2 deletions lib/libipsec/pfkey_dump.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* $FreeBSD: src/lib/libipsec/pfkey_dump.c,v 1.1.2.4 2003/04/27 00:03:36 sumikawa Exp $ */
/* $DragonFly: src/lib/libipsec/pfkey_dump.c,v 1.3 2003/11/12 20:21:30 eirikn Exp $ */
/* $KAME: pfkey_dump.c,v 1.28 2001/06/27 10:46:51 sakane Exp $ */

/*
Expand Down Expand Up @@ -40,7 +39,6 @@
#include <netkey/key_debug.h>

#include <netinet/in.h>
#include <netinet6/ipsec.h>
#include <arpa/inet.h>

#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion lib/libncurses/libncurses/termcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
#include "pathnames.h"
Expand Down
2 changes: 0 additions & 2 deletions lib/libnetgraph/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
* Author: Archie Cobbs <archie@whistle.com>
*
* $FreeBSD: src/lib/libnetgraph/debug.c,v 1.5.2.1 2000/05/01 18:09:54 archie Exp $
* $DragonFly: src/lib/libnetgraph/debug.c,v 1.4 2007/06/17 20:33:14 swildner Exp $
* $Whistle: debug.c,v 1.24 1999/01/24 01:15:33 archie Exp $
*/

Expand Down Expand Up @@ -78,7 +77,6 @@
#include <netgraph/pppoe/ng_pppoe.h>
#include <netgraph/pptpgre/ng_pptpgre.h>
#include <netgraph/rfc1490/ng_rfc1490.h>
#include <netgraph/socket/ng_socket.h>
#include <netgraph/tee/ng_tee.h>
#include <netgraph/tty/ng_tty.h>
#include <netgraph/vjc/ng_vjc.h>
Expand Down
2 changes: 0 additions & 2 deletions lib/pam_module/pam_ssh/pam_ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* SUCH DAMAGE.
*
* $FreeBSD: src/lib/libpam/modules/pam_ssh/pam_ssh.c,v 1.45 2007/12/21 12:00:15 des Exp $
* $DragonFly: src/lib/pam_module/pam_ssh/pam_ssh.c,v 1.2 2006/09/29 06:35:03 corecode Exp $
*/

#include <sys/param.h>
Expand All @@ -58,7 +57,6 @@

#include "buffer.h"
#include "key.h"
#include "buffer.h"
#include "authfd.h"
#include "authfile.h"

Expand Down

0 comments on commit cc609d8

Please sign in to comment.