Skip to content

Commit ce1ed78

Browse files
author
Daan Wijffels
committed
changed response_code to long instead of CURLcode as it is a HTTP return and not CURL error code.
1 parent 4bedff9 commit ce1ed78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diagnostic_remote_logging/src/influxdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ bool InfluxDB::sendToInfluxDB(const std::string & data)
146146
RCLCPP_ERROR(this->get_logger(), "cURL error: %s", curl_easy_strerror(res));
147147
return false;
148148
}
149-
CURLcode response_code;
149+
long response_code;
150150
curl_easy_getinfo(curl_, CURLINFO_RESPONSE_CODE, &response_code);
151151

152152
if (response_code != 204) {

0 commit comments

Comments
 (0)