mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
silence a couple of minor warnings from sparse/cgcc
This commit is contained in:
parent
b01ddb8cb4
commit
7f9d71e6ff
2 changed files with 8 additions and 7 deletions
|
@ -104,13 +104,14 @@ blocklistThreadFunc( gpointer gcore )
|
|||
|
||||
if( ok )
|
||||
{
|
||||
long verbose = getenv( "TR_CURL_VERBOSE" ) == NULL ? 0L : 1L;
|
||||
|
||||
CURL * curl = curl_easy_init( );
|
||||
curl_easy_setopt( curl, CURLOPT_URL, url );
|
||||
curl_easy_setopt( curl, CURLOPT_ENCODING, "deflate" );
|
||||
curl_easy_setopt( curl, CURLOPT_USERAGENT,
|
||||
"Transmission/" LONG_VERSION_STRING );
|
||||
curl_easy_setopt( curl, CURLOPT_VERBOSE, getenv(
|
||||
"TR_CURL_VERBOSE" ) != NULL );
|
||||
curl_easy_setopt( curl, CURLOPT_USERAGENT, "Transmission/"
|
||||
LONG_VERSION_STRING );
|
||||
curl_easy_setopt( curl, CURLOPT_VERBOSE, verbose );
|
||||
curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, writeFunc );
|
||||
curl_easy_setopt( curl, CURLOPT_WRITEDATA, &fd );
|
||||
curl_easy_setopt( curl, CURLOPT_NOPROGRESS, 1 );
|
||||
|
|
|
@ -235,9 +235,9 @@ add_response( struct evhttp_request * req,
|
|||
int state;
|
||||
z_stream stream;
|
||||
|
||||
stream.zalloc = Z_NULL;
|
||||
stream.zfree = Z_NULL;
|
||||
stream.opaque = Z_NULL;
|
||||
stream.zalloc = (alloc_func) Z_NULL;
|
||||
stream.zfree = (free_func) Z_NULL;
|
||||
stream.opaque = (voidpf) Z_NULL;
|
||||
deflateInit( &stream, Z_BEST_COMPRESSION );
|
||||
|
||||
stream.next_in = (Bytef*) content;
|
||||
|
|
Loading…
Reference in a new issue