Changeset 2544


Ignore:
Timestamp:
Jul 29, 2007, 6:11:21 PM (15 years ago)
Author:
charles
Message:

this looks bug but it's not: just janitorial cleanup, moving #includes from headers into source file

Location:
trunk/libtransmission
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r2495 r2544  
    2323 *****************************************************************************/
    2424
     25#include <assert.h>
    2526#include <ctype.h> /* isdigit, isprint */
    2627#include <stdarg.h>
     28#include <stdio.h>
     29#include <stdlib.h>
     30
    2731#include "transmission.h"
    2832#include "bencode.h"
  • trunk/libtransmission/choking.c

    r2429 r2544  
    2323 *****************************************************************************/
    2424
     25#include <stdlib.h>
     26#include <string.h>
    2527#include <math.h>
     28
    2629#include "transmission.h"
    2730#include "choking.h"
  • trunk/libtransmission/clients.c

    r2391 r2544  
    2424
    2525#include <ctype.h> /* isprint */
     26#include <string.h>
    2627
    2728#include "transmission.h"
  • trunk/libtransmission/completion.c

    r2538 r2544  
    2323 *****************************************************************************/
    2424
     25#include <assert.h>
     26#include <string.h>
     27
    2528#include "transmission.h"
    2629#include "completion.h"
  • trunk/libtransmission/fastresume.c

    r2472 r2544  
    4242 **********************************************************************/
    4343
     44#include <assert.h>
     45#include <errno.h>
     46#include <stdio.h>
     47#include <stdlib.h>
     48#include <string.h>
     49#include <time.h>
     50
    4451#include <sys/types.h>
    4552#include <sys/stat.h>
    4653#include <unistd.h>
     54
    4755#include "transmission.h"
    4856#include "fastresume.h"
  • trunk/libtransmission/fdlimit.c

    r2456 r2544  
    2323 *****************************************************************************/
    2424
     25#include <errno.h>
     26#include <stdio.h>
     27#include <stdlib.h>
     28#include <string.h>
     29
    2530#include <sys/types.h>
    2631#include <sys/stat.h>
  • trunk/libtransmission/http.c

    r2391 r2544  
    2323 *****************************************************************************/
    2424
     25#include <assert.h>
     26#include <stdarg.h>
     27#include <stdlib.h>
     28#include <string.h>
     29
    2530#include <sys/types.h>
    2631#include <sys/socket.h>
    2732#include <netinet/in.h>
    2833#include <arpa/inet.h>
    29 #include <stdarg.h>
    3034
    3135#include "transmission.h"
  • trunk/libtransmission/inout.c

    r2531 r2544  
    99 */
    1010
     11#include <assert.h>
     12#include <stdlib.h>
     13#include <string.h>
     14
    1115#include <sys/types.h>
    1216#include <sys/stat.h>
    1317#include <unistd.h>
     18
    1419#include "transmission.h"
    1520#include "fdlimit.h"
  • trunk/libtransmission/internal.h

    r2531 r2544  
    2626#define TR_INTERNAL_H 1
    2727
    28 /* Standard headers used here and there.
    29    That is probably ugly to put them all here, but it is sooo
    30    convenient */
    31 #if ( defined( __unix__ ) || defined( unix ) ) && !defined( USG )
    32 #include <sys/param.h>
    33 #endif
    34 #include <stdio.h>
     28
    3529#ifdef SYS_BEOS
    3630/* BeOS doesn't declare vasprintf in its headers, but actually
    3731 * implements it */
    38 int vasprintf( char **, const char *, va_list );
    39 #endif
    40 #include <stdlib.h>
    41 #include <string.h>
    42 #include <errno.h>
    43 #include <time.h>
     32extern int vasprintf( char **, const char *, va_list );
     33#endif
     34
    4435#ifndef __AMIGAOS4__
    4536#include <sys/resource.h>
    4637#endif
    47 #include <assert.h>
     38
    4839#ifdef SYS_BEOS
    4940#  define socklen_t uint32_t
    5041#endif
     42
    5143#ifdef BEOS_NETSERVER
    5244#  define in_port_t uint16_t
     
    5547#endif
    5648
    57 #define TR_NAME                 "Transmission"
     49#define TR_NAME "Transmission"
    5850
    5951#ifndef INADDR_NONE
    60 #define INADDR_NONE             0xffffffff
     52#define INADDR_NONE 0xffffffff
    6153#endif
    6254
  • trunk/libtransmission/makemeta.c

    r2487 r2544  
    99 */
    1010
     11#include <assert.h>
     12#include <errno.h>
    1113#include <math.h>
     14#include <stdio.h> /* FILE, snprintf, stderr */
     15#include <stdlib.h>
     16
    1217#include <sys/types.h>
    1318#include <sys/stat.h>
    1419#include <unistd.h>
    1520#include <dirent.h>
    16 #include <stdio.h> /* FILE, snprintf, stderr */
    1721
    1822#include "trcompat.h" /* for strlcpy */
  • trunk/libtransmission/metainfo.c

    r2512 r2544  
    2323 *****************************************************************************/
    2424
     25#include <assert.h>
     26#include <errno.h>
     27#include <stdio.h>
     28#include <stdlib.h>
     29
    2530#include <sys/types.h>
    2631#include <sys/stat.h>
    2732#include <unistd.h> /* unlink, stat */
     33
    2834#include "transmission.h"
    2935#include "bencode.h"
  • trunk/libtransmission/natpmp.c

    r2343 r2544  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#include <assert.h>
     26#include <errno.h>
     27#include <stdlib.h>
     28#include <string.h>
     29#include <time.h>
    2430
    2531#include <sys/types.h>
  • trunk/libtransmission/net.c

    r2343 r2544  
    2323 *****************************************************************************/
    2424
     25#include <errno.h>
     26#include <stdio.h>
     27#include <stdlib.h>
     28#include <string.h>
     29
    2530#include <sys/types.h>
    2631#include <sys/socket.h>
  • trunk/libtransmission/peer.c

    r2531 r2544  
    2323 *****************************************************************************/
    2424
     25#include <assert.h>
     26#include <stdarg.h>
     27#include <stdio.h>
     28#include <stdlib.h>
     29#include <time.h>
     30
    2531#include <sys/types.h>
    2632#include <sys/socket.h>
    2733#include <netinet/in.h>
    2834#include <arpa/inet.h>
    29 #include <stdarg.h>
    3035
    3136#include "transmission.h"
  • trunk/libtransmission/platform.c

    r2391 r2544  
    2323 *****************************************************************************/
    2424
     25#include <errno.h>
     26#include <stdio.h>
     27#include <stdlib.h>
     28#include <string.h>
     29
    2530#ifdef SYS_BEOS
    2631  #include <fs_info.h>
     
    3136#include <fcntl.h>
    3237#include <unistd.h> /* getuid getpid close */
     38
    3339#include "transmission.h"
    3440
  • trunk/libtransmission/ratecontrol.c

    r2443 r2544  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#include <string.h>
    2426
    2527#include "transmission.h"
  • trunk/libtransmission/shared.c

    r2343 r2544  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#include <assert.h>
     26#include <stdlib.h>
     27#include <string.h>
    2428
    2529#include <sys/types.h>
  • trunk/libtransmission/torrent.c

    r2533 r2544  
    2424
    2525#include <assert.h>
     26#include <stdio.h>
     27#include <stdlib.h>
     28#include <string.h>
     29
    2630#include <sys/types.h>
    2731#include <sys/socket.h>
  • trunk/libtransmission/tracker.c

    r2374 r2544  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#include <assert.h>
     26#include <stdio.h>
     27#include <stdlib.h>
    2428
    2529#include <sys/types.h>
  • trunk/libtransmission/transmission.c

    r2526 r2544  
    2323 *****************************************************************************/
    2424
     25#include <assert.h>
     26#include <stdio.h>
     27#include <stdlib.h>
     28#include <string.h>
     29
    2530#include <signal.h>
    2631#include <sys/types.h> /* stat */
     
    2833#include <unistd.h> /* stat */
    2934#include <dirent.h> /* opendir */
     35
    3036#include "transmission.h"
    3137#include "fdlimit.h"
  • trunk/libtransmission/upnp.c

    r2391 r2544  
    2323 *****************************************************************************/
    2424
     25#include <assert.h>
     26#include <errno.h>
     27#include <limits.h>
     28#include <stdarg.h>
     29#include <stdio.h>
     30#include <stdlib.h>
     31#include <string.h>
     32#include <time.h>
     33
    2534#include <sys/types.h>
    2635#include <sys/socket.h>
    2736#include <netinet/in.h>
    2837#include <arpa/inet.h>
    29 #include <limits.h>
    30 #include <stdarg.h>
    3138
    3239#include "transmission.h"
  • trunk/libtransmission/utils.c

    r2538 r2544  
    2323 *****************************************************************************/
    2424
     25#include <assert.h>
    2526#include <ctype.h>
    2627#include <errno.h>
Note: See TracChangeset for help on using the changeset viewer.