Browse Source

MT#55283 fix int width type issue

Change-Id: I1d31e65d4d1a3106844c4b069353ca6b6126fd3a
Warned-by: Coverity
pull/1870/head
Richard Fuchs 1 year ago
parent
commit
e1501d0234
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/graphite.c

+ 1
- 1
daemon/graphite.c View File

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


Loading…
Cancel
Save