From ea4e6f8f62e5ec51b95387d1d111476468f8a7b1 Mon Sep 17 00:00:00 2001 From: Sam Pointer Date: Wed, 25 Nov 2015 15:43:07 +0000 Subject: [PATCH] the swrite interface is 'non-zero' Signed-off-by: Florian Forster --- src/write_graphite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2