MT#55283 fix int width type issue

Change-Id: I1d31e65d4d1a3106844c4b069353ca6b6126fd3a
Warned-by: Coverity
pull/1870/head
Richard Fuchs 1 year ago
parent c37f378532
commit e1501d0234

@ -232,7 +232,7 @@ static int send_graphite_data(void) {
size_t sent = 0;
int blockings = 10; // let it block that many times
while (sent < graph_str->len) {
int rc = write(graphite_sock.fd, graph_str->str + sent, graph_str->len - sent);
ssize_t rc = write(graphite_sock.fd, graph_str->str + sent, graph_str->len - sent);
if (rc<0) {
if (blockings <= 0 || (errno != EWOULDBLOCK && errno != EAGAIN && errno != EINTR)) {
ilog(LOG_ERROR,"Could not write to graphite socket (%s). " \

Loading…
Cancel
Save