Changeset 6971


Ignore:
Timestamp:
Oct 27, 2008, 6:09:15 PM (12 years ago)
Author:
charles
Message:

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

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r6897 r6971  
    10571057    curl_easy_setopt( curl, CURLOPT_VERBOSE, debug );
    10581058#ifdef HAVE_LIBZ
    1059 //    curl_easy_setopt( curl, CURLOPT_ENCODING, "deflate" );
     1059    curl_easy_setopt( curl, CURLOPT_ENCODING, "deflate" );
    10601060#endif
    10611061    curl_easy_setopt( curl, CURLOPT_USERAGENT,
  • trunk/libtransmission/JSON_parser.c

    r6914 r6971  
    6464
    6565#if _MSC_VER >= 1400 /* Visual Studio 2005 and up */
    66 #       pragma warning(disable:4996) // unsecure sscanf
     66#       pragma warning(disable:4996) /* unsecure sscanf */
    6767#endif
    6868
  • trunk/libtransmission/tracker.c

    r6970 r6971  
    447447    else
    448448    {
    449         char * buf = tr_strdup_printf( _( "Tracker request failed.  Got HTTP Status Code %ld (%s)" ),
     449        /* %1$ld - http status code, such as 404
     450         * %2$s - human-readable explanation of the http status code */
     451        char * buf = tr_strdup_printf( _( "Tracker request failed.  Got HTTP Status Code %1$ld (%2$s)" ),
    450452                                      responseCode,
    451453                                      tr_webGetResponseStr( responseCode ) );
  • trunk/libtransmission/webseed.c

    r6882 r6971  
    263263
    264264    url = makeURL( w, &inf->files[fileIndex] );
    265 //fprintf( stderr, "url is [%s]\n", url );
     265/*fprintf( stderr, "url is [%s]\n", url );*/
    266266    range = tr_strdup_printf( "%"PRIu64"-%"PRIu64, fileOffset, fileOffset + thisPass - 1 );
    267 //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 );
     267/*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 );*/
    268268    tr_webRun( w->torrent->session, url, range, webResponseFunc, w );
    269269    tr_free( range );
Note: See TracChangeset for help on using the changeset viewer.