From c24fc6e16a1e2d4c5adeceb88ee7d8db475c9730 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 19 Jul 2007 10:56:14 +0000 Subject: [PATCH] de-inline some big functions. --- libtransmission/choking.c | 8 ++++---- libtransmission/fastresume.c | 4 ++-- libtransmission/utils.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libtransmission/choking.c b/libtransmission/choking.c index d57f70033..f5d9ca64a 100644 --- a/libtransmission/choking.c +++ b/libtransmission/choking.c @@ -67,10 +67,10 @@ void tr_chokingSetLimit( tr_choking_t * c, int limit ) #define sortPeersAscending(a,ac,z,zc,n,nc) sortPeers(a,ac,z,zc,n,nc,0) #define sortPeersDescending(a,ac,z,zc,n,nc) sortPeers(a,ac,z,zc,n,nc,1) -static inline void sortPeers( tr_peer_t ** all, int allCount, - tr_peer_t ** zero, int * zeroCount, - tr_peer_t ** nonZero, int * nonZeroCount, - int order ) +static void sortPeers( tr_peer_t ** all, int allCount, + tr_peer_t ** zero, int * zeroCount, + tr_peer_t ** nonZero, int * nonZeroCount, + int order ) { int i, shuffle; diff --git a/libtransmission/fastresume.c b/libtransmission/fastresume.c index a9ccba15b..180497c01 100644 --- a/libtransmission/fastresume.c +++ b/libtransmission/fastresume.c @@ -135,8 +135,8 @@ getMTimes( const tr_torrent_t * tor, int * setme_n ) return m; } -static inline void fastResumeWriteData( uint8_t id, void * data, uint32_t size, - uint32_t count, FILE * file ) +static void fastResumeWriteData( uint8_t id, void * data, uint32_t size, + uint32_t count, FILE * file ) { uint32_t datalen = size * count; diff --git a/libtransmission/utils.c b/libtransmission/utils.c index 6efaa910a..a8299bc88 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -706,7 +706,7 @@ int _tr_blockPiece( const tr_torrent_t * tor, int block ) return block / ( inf->pieceSize / tor->blockSize ); } -inline int _tr_blockSize( const tr_torrent_t * tor, int block ) +int _tr_blockSize( const tr_torrent_t * tor, int block ) { const tr_info_t * inf = &tor->info; int dummy;