From 59560eccf6fe041fd1c16b0cdfd39695194fbbb4 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 31 May 2010 17:03:51 +0000 Subject: [PATCH] (trunk libT) #3249 "C99-ism in libtransmission/tr-lpd.c" -- fixed in trunk for 2.00 --- libtransmission/tr-lpd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libtransmission/tr-lpd.c b/libtransmission/tr-lpd.c index 2c8563197..1daecc762 100644 --- a/libtransmission/tr-lpd.c +++ b/libtransmission/tr-lpd.c @@ -32,7 +32,7 @@ THE SOFTWARE. #include /* socket(), bind() */ #include /* close() */ #include /* fcntl(), O_NONBLOCK */ -#include +#include /* toupper() */ /* third party */ #include @@ -429,6 +429,7 @@ static inline void lpd_consistencyCheck( void ) */ tr_bool tr_lpdSendAnnounce( const tr_torrent* t ) { + size_t i; const char fmt[] = "BT-SEARCH * HTTP/%u.%u" CRLF "Host: %s:%u" CRLF @@ -444,7 +445,7 @@ tr_bool tr_lpdSendAnnounce( const tr_torrent* t ) return FALSE; /* make sure the hash string is normalized, just in case */ - for( size_t i = 0; i < sizeof hashString; i++ ) + for( i = 0; i < sizeof hashString; i++ ) hashString[i] = toupper( t->info.hashString[i] ); /* prepare a zero-terminated announce message */ -- 2.40.0