@@ -314,8 +314,8 @@ static CURLcode inner_http_request(stns_conf_t *c, char *path, stns_response_t *
314314 }
315315 }
316316 curl_easy_setopt (curl , CURLOPT_HTTPHEADER , headers );
317- curl_easy_setopt (curl , CURLOPT_SSL_VERIFYPEER , c -> ssl_verify );
318- curl_easy_setopt (curl , CURLOPT_SSL_VERIFYHOST , c -> ssl_verify );
317+ curl_easy_setopt (curl , CURLOPT_SSL_VERIFYPEER , ( long ) c -> ssl_verify );
318+ curl_easy_setopt (curl , CURLOPT_SSL_VERIFYHOST , ( long ) c -> ssl_verify );
319319 curl_easy_setopt (curl , CURLOPT_USERAGENT , STNS_VERSION_WITH_NAME );
320320 if (c -> http_location == 1 ) {
321321 curl_easy_setopt (curl , CURLOPT_FOLLOWLOCATION , 1L );
@@ -347,13 +347,13 @@ static CURLcode inner_http_request(stns_conf_t *c, char *path, stns_response_t *
347347 "http://unix" , path );
348348 }
349349 curl_easy_setopt (curl , CURLOPT_URL , url );
350- curl_easy_setopt (curl , CURLOPT_NOPROGRESS , 1 );
351- curl_easy_setopt (curl , CURLOPT_TIMEOUT , c -> request_timeout );
350+ curl_easy_setopt (curl , CURLOPT_NOPROGRESS , 1L );
351+ curl_easy_setopt (curl , CURLOPT_TIMEOUT , ( long ) c -> request_timeout );
352352 curl_easy_setopt (curl , CURLOPT_WRITEFUNCTION , response_callback );
353353 curl_easy_setopt (curl , CURLOPT_HEADERFUNCTION , header_callback );
354354 curl_easy_setopt (curl , CURLOPT_WRITEDATA , res );
355355 curl_easy_setopt (curl , CURLOPT_HEADERDATA , c );
356- curl_easy_setopt (curl , CURLOPT_NOSIGNAL , 1 );
356+ curl_easy_setopt (curl , CURLOPT_NOSIGNAL , 1L );
357357
358358#ifdef DEBUG
359359 syslog (LOG_ERR , "%s(stns)[L%d] before request http request: %s" , __func__ , __LINE__ , url );
0 commit comments