From: Sam Pointer Date: Wed, 25 Nov 2015 15:43:07 +0000 (+0000) Subject: the swrite interface is 'non-zero' X-Git-Tag: collectd-5.5.1~40^2~24 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ea4e6f8f62e5ec51b95387d1d111476468f8a7b1;p=collectd.git the swrite interface is 'non-zero' Signed-off-by: Florian Forster --- diff --git a/src/write_graphite.c b/src/write_graphite.c index 504ea9d4..547e5dbc 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -128,7 +128,7 @@ static int wg_send_buffer (struct wg_callback *cb) ssize_t status = 0; status = swrite (cb->sock_fd, cb->send_buf, strlen (cb->send_buf)); - if (status < 0) + if (status != 0) { const char *protocol = cb->protocol ? cb->protocol : WG_DEFAULT_PROTOCOL;