Changeset 5081


Ignore:
Timestamp:
Feb 19, 2008, 6:39:49 PM (15 years ago)
Author:
charles
Message:

remove unnecessary #includes

Location:
trunk/libtransmission
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fastresume.c

    r5066 r5081  
    4444#include <assert.h>
    4545#include <stdio.h>
    46 #include <stdlib.h>
    47 #include <string.h>
    48 #include <time.h>
     46#include <stdlib.h> /* calloc */
     47#include <string.h> /* strcpy, memset, memcmp */
    4948
    5049#include <sys/types.h>
    51 #include <sys/stat.h>
    52 #include <unistd.h>
    53 
    54 #include <event.h>
     50#include <sys/stat.h> /* stat */
     51#include <unistd.h> /* unlink */
    5552
    5653#include "transmission.h"
    5754#include "completion.h"
    5855#include "fastresume.h"
    59 #include "internal.h" /* tr_torrentInitFileDLs */
    6056#include "peer-mgr.h"
    6157#include "platform.h"
  • trunk/libtransmission/fdlimit.c

    r5065 r5081  
    4848
    4949#include "transmission.h"
    50 #include "trcompat.h"
    5150#include "list.h"
    5251#include "net.h"
    53 #include "platform.h"
     52#include "platform.h" /* tr_lock */
     53#include "trcompat.h" /* strlcpy */
    5454#include "utils.h"
    5555
  • trunk/libtransmission/inout.c

    r5065 r5081  
    1313#include <assert.h>
    1414#include <errno.h>
    15 #include <stdlib.h>
    16 #include <string.h>
     15#include <string.h> /* memcmp */
    1716
    1817#include <sys/types.h>
     
    2322
    2423#include "transmission.h"
    25 #include "completion.h"
    26 #include "crypto.h"
    27 #include "fastresume.h"
    2824#include "fdlimit.h"
    2925#include "inout.h"
    30 #include "list.h"
    31 #include "platform.h"
    32 #include "peer-mgr.h"
    3326#include "stats.h"
    3427#include "torrent.h"
  • trunk/libtransmission/makemeta.c

    r5065 r5081  
    1313#include <assert.h>
    1414#include <errno.h>
    15 #include <math.h>
    1615#include <stdio.h> /* FILE, snprintf, stderr */
    17 #include <stdlib.h>
     16#include <stdlib.h> /* qsort */
    1817
    1918#include <sys/types.h>
  • trunk/libtransmission/peer-mgr.c

    r5001 r5081  
    3131#include "peer-mgr-private.h"
    3232#include "peer-msgs.h"
    33 #include "platform.h"
    3433#include "ptrarray.h"
    3534#include "ratecontrol.h"
    36 #include "shared.h"
    3735#include "torrent.h"
    3836#include "trcompat.h" /* strlcpy */
  • trunk/libtransmission/platform.c

    r5065 r5081  
    5151
    5252#include "transmission.h"
    53 #include "list.h"
    54 #include "net.h"
    5553#include "platform.h"
    5654#include "trcompat.h"
  • trunk/libtransmission/torrent.c

    r5066 r5081  
    2424
    2525#include <assert.h>
    26 #include <stdio.h>
    27 #include <stdlib.h>
    28 #include <string.h>
    29 
    30 #include <sys/types.h>
     26#include <string.h> /* memcmp */
    3127
    3228#include "transmission.h"
     
    3632#include "fastresume.h"
    3733#include "fdlimit.h" /* tr_fdFileClose */
    38 #include "handshake.h"
    39 #include "inout.h"
    4034#include "metainfo.h"
    41 #include "net.h" /* tr_netNtop */
    4235#include "peer-mgr.h"
    43 #include "platform.h"
    4436#include "ratecontrol.h"
    45 #include "shared.h"
    4637#include "torrent.h"
    4738#include "tracker.h"
  • trunk/libtransmission/transmission.c

    r5013 r5081  
    2424
    2525#include <assert.h>
    26 #include <stdio.h>
    2726#include <stdlib.h>
    28 #include <string.h>
     27#include <string.h> /* memcpy */
    2928
    3029#include <signal.h>
     
    3938#include "net.h"
    4039#include "peer-mgr.h"
    41 #include "platform.h"
     40#include "platform.h" /* tr_lock */
    4241#include "ratecontrol.h"
    4342#include "shared.h"
Note: See TracChangeset for help on using the changeset viewer.