diff --git a/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h b/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h index 1c11f6a9e2..45eac682e4 100644 --- a/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h +++ b/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h @@ -205,7 +205,7 @@ class HttpOperation /* wait for the socket to become ready for sending */ sockfd_ = sockextr; - if (!WaitOnSocket(sockfd_, 0, http_conn_timeout_.count()) || is_aborted_) + if (!WaitOnSocket(sockfd_, 0, static_cast(http_conn_timeout_.count())) || is_aborted_) { res_ = CURLE_OPERATION_TIMEDOUT; DispatchEvent( @@ -414,8 +414,6 @@ class HttpOperation // Socket parameters curl_socket_t sockfd_; - // long sockextr_ = 0; - curl_off_t nread_; size_t sendlen_ = 0; // # bytes sent by client size_t acklen_ = 0; // # bytes ack by server