remove unnecessary #includes

This commit is contained in:
Charles Kerr 2008-02-19 18:39:49 +00:00
parent 8e1c3ff365
commit cfe068876e
8 changed files with 11 additions and 37 deletions

View File

@ -43,20 +43,16 @@
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <stdlib.h> /* calloc */
#include <string.h> /* strcpy, memset, memcmp */
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <event.h>
#include <sys/stat.h> /* stat */
#include <unistd.h> /* unlink */
#include "transmission.h"
#include "completion.h"
#include "fastresume.h"
#include "internal.h" /* tr_torrentInitFileDLs */
#include "peer-mgr.h"
#include "platform.h"
#include "torrent.h"

View File

@ -47,10 +47,10 @@
#include <evutil.h>
#include "transmission.h"
#include "trcompat.h"
#include "list.h"
#include "net.h"
#include "platform.h"
#include "platform.h" /* tr_lock */
#include "trcompat.h" /* strlcpy */
#include "utils.h"
#if SIZEOF_VOIDP==8

View File

@ -12,8 +12,7 @@
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <string.h> /* memcmp */
#include <sys/types.h>
#include <sys/stat.h>
@ -22,14 +21,8 @@
#include <openssl/sha.h>
#include "transmission.h"
#include "completion.h"
#include "crypto.h"
#include "fastresume.h"
#include "fdlimit.h"
#include "inout.h"
#include "list.h"
#include "platform.h"
#include "peer-mgr.h"
#include "stats.h"
#include "torrent.h"
#include "utils.h"

View File

@ -12,9 +12,8 @@
#include <assert.h>
#include <errno.h>
#include <math.h>
#include <stdio.h> /* FILE, snprintf, stderr */
#include <stdlib.h>
#include <stdlib.h> /* qsort */
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -30,10 +30,8 @@
#include "peer-mgr.h"
#include "peer-mgr-private.h"
#include "peer-msgs.h"
#include "platform.h"
#include "ptrarray.h"
#include "ratecontrol.h"
#include "shared.h"
#include "torrent.h"
#include "trcompat.h" /* strlcpy */
#include "trevent.h"

View File

@ -50,8 +50,6 @@
#include <unistd.h> /* getuid getpid close */
#include "transmission.h"
#include "list.h"
#include "net.h"
#include "platform.h"
#include "trcompat.h"
#include "utils.h"

View File

@ -23,11 +23,7 @@
*****************************************************************************/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <string.h> /* memcmp */
#include "transmission.h"
#include "bencode.h"
@ -35,14 +31,9 @@
#include "crypto.h" /* for tr_sha1 */
#include "fastresume.h"
#include "fdlimit.h" /* tr_fdFileClose */
#include "handshake.h"
#include "inout.h"
#include "metainfo.h"
#include "net.h" /* tr_netNtop */
#include "peer-mgr.h"
#include "platform.h"
#include "ratecontrol.h"
#include "shared.h"
#include "torrent.h"
#include "tracker.h"
#include "trcompat.h" /* for strlcpy */

View File

@ -23,9 +23,8 @@
*****************************************************************************/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string.h> /* memcpy */
#include <signal.h>
#include <sys/types.h> /* stat */
@ -38,7 +37,7 @@
#include "list.h"
#include "net.h"
#include "peer-mgr.h"
#include "platform.h"
#include "platform.h" /* tr_lock */
#include "ratecontrol.h"
#include "shared.h"
#include "stats.h"