Changeset 6939


Ignore:
Timestamp:
Oct 21, 2008, 3:57:56 AM (12 years ago)
Author:
charles
Message:

silence a couple of minor warnings from sparse/cgcc

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/blocklist.c

    r6873 r6939  
    105105    if( ok )
    106106    {
     107        long verbose = getenv( "TR_CURL_VERBOSE" ) == NULL ? 0L : 1L;
     108
    107109        CURL * curl = curl_easy_init( );
    108110        curl_easy_setopt( curl, CURLOPT_URL, url );
    109111        curl_easy_setopt( curl, CURLOPT_ENCODING, "deflate" );
    110         curl_easy_setopt( curl, CURLOPT_USERAGENT,
    111                           "Transmission/" LONG_VERSION_STRING );
    112         curl_easy_setopt( curl, CURLOPT_VERBOSE, getenv(
    113                               "TR_CURL_VERBOSE" ) != NULL );
     112        curl_easy_setopt( curl, CURLOPT_USERAGENT, "Transmission/"
     113                                                   LONG_VERSION_STRING );
     114        curl_easy_setopt( curl, CURLOPT_VERBOSE, verbose );
    114115        curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, writeFunc );
    115116        curl_easy_setopt( curl, CURLOPT_WRITEDATA, &fd );
  • trunk/libtransmission/rpc-server.c

    r6894 r6939  
    236236        z_stream stream;
    237237
    238         stream.zalloc = Z_NULL;
    239         stream.zfree = Z_NULL;
    240         stream.opaque = Z_NULL;
     238        stream.zalloc = (alloc_func) Z_NULL;
     239        stream.zfree = (free_func) Z_NULL;
     240        stream.opaque = (voidpf) Z_NULL;
    241241        deflateInit( &stream, Z_BEST_COMPRESSION );
    242242
Note: See TracChangeset for help on using the changeset viewer.