From e1501d023462fd77f709ce7d5388709c74716f80 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 3 Oct 2024 10:47:24 -0400 Subject: [PATCH] MT#55283 fix int width type issue Change-Id: I1d31e65d4d1a3106844c4b069353ca6b6126fd3a Warned-by: Coverity --- daemon/graphite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/graphite.c b/daemon/graphite.c index dde7239a6..5ad68a9bc 100644 --- a/daemon/graphite.c +++ b/daemon/graphite.c @@ -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). " \