packages/net/transmission/patches/001-compile-error.patch
obsy 45a2de412c [packages] transmission: update to 2.00b1, add new options
git-svn-id: svn://svn.openwrt.org/openwrt/packages@21569 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-25 19:53:25 +00:00

18 lines
631 B
Diff

--- transmission/libtransmission/tr-lpd.c.orig 2010-05-23 03:49:23.000000000 +0200
+++ transmission/libtransmission/tr-lpd.c 2010-05-25 19:44:03.000000000 +0200
@@ -439,12 +439,13 @@
char hashString[lengthof( t->info.hashString )];
char query[lpd_maxDatagramLength + 1] = { };
+ size_t i;
if( t == NULL )
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 */