mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
janitorial.
(1) re-enable `deflate' in transmission-remote iff libz is installed (2) change c++-style comments to c-style comments (3) add positional arguments to a couple of libT strings marked for translation
This commit is contained in:
parent
98168cb605
commit
9fe6f403eb
4 changed files with 7 additions and 5 deletions
|
@ -1056,7 +1056,7 @@ processRequests( const char * host,
|
|||
curl = curl_easy_init( );
|
||||
curl_easy_setopt( curl, CURLOPT_VERBOSE, debug );
|
||||
#ifdef HAVE_LIBZ
|
||||
// curl_easy_setopt( curl, CURLOPT_ENCODING, "deflate" );
|
||||
curl_easy_setopt( curl, CURLOPT_ENCODING, "deflate" );
|
||||
#endif
|
||||
curl_easy_setopt( curl, CURLOPT_USERAGENT,
|
||||
MY_NAME "/" LONG_VERSION_STRING );
|
||||
|
|
|
@ -63,7 +63,7 @@ SOFTWARE.
|
|||
#include "ConvertUTF.h"
|
||||
|
||||
#if _MSC_VER >= 1400 /* Visual Studio 2005 and up */
|
||||
# pragma warning(disable:4996) // unsecure sscanf
|
||||
# pragma warning(disable:4996) /* unsecure sscanf */
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -446,7 +446,9 @@ onTrackerResponse( tr_session * session,
|
|||
}
|
||||
else
|
||||
{
|
||||
char * buf = tr_strdup_printf( _( "Tracker request failed. Got HTTP Status Code %ld (%s)" ),
|
||||
/* %1$ld - http status code, such as 404
|
||||
* %2$s - human-readable explanation of the http status code */
|
||||
char * buf = tr_strdup_printf( _( "Tracker request failed. Got HTTP Status Code %1$ld (%2$s)" ),
|
||||
responseCode,
|
||||
tr_webGetResponseStr( responseCode ) );
|
||||
publishWarning( t, buf );
|
||||
|
|
|
@ -262,9 +262,9 @@ requestNextChunk( tr_webseed * w )
|
|||
thisPass = MIN( left, inf->files[fileIndex].length - fileOffset );
|
||||
|
||||
url = makeURL( w, &inf->files[fileIndex] );
|
||||
//fprintf( stderr, "url is [%s]\n", url );
|
||||
/*fprintf( stderr, "url is [%s]\n", url );*/
|
||||
range = tr_strdup_printf( "%"PRIu64"-%"PRIu64, fileOffset, fileOffset + thisPass - 1 );
|
||||
//fprintf( stderr, "range is [%s] ... we want %lu total, we have %lu, so %lu are left, and we're asking for %lu this time\n", range, (unsigned long)w->byteCount, (unsigned long)have, (unsigned long)left, (unsigned long)thisPass );
|
||||
/*fprintf( stderr, "range is [%s] ... we want %lu total, we have %lu, so %lu are left, and we're asking for %lu this time\n", range, (unsigned long)w->byteCount, (unsigned long)have, (unsigned long)left, (unsigned long)thisPass );*/
|
||||
tr_webRun( w->torrent->session, url, range, webResponseFunc, w );
|
||||
tr_free( range );
|
||||
tr_free( url );
|
||||
|
|
Loading…
Reference in a new issue