From: Ruben Kerkhof Date: Sat, 23 Apr 2016 08:38:35 +0000 (+0200) Subject: write_graphite: send_buf_fill is unsigned X-Git-Tag: collectd-5.6.0~329^2~39 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0c9be2d10c48975f490bd7f00c6fb3eff1984ae0;p=collectd.git write_graphite: send_buf_fill is unsigned [src/write_graphite.c:183]: (style) Checking if unsigned variable 'send_buf_fill' is less than zero. --- diff --git a/src/write_graphite.c b/src/write_graphite.c index 0fa8bc32..0b8ab41c 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -180,7 +180,7 @@ static int wg_flush_nolock (cdtime_t timeout, struct wg_callback *cb) return (0); } - if (cb->send_buf_fill <= 0) + if (cb->send_buf_fill == 0) { cb->send_buf_init_time = cdtime (); return (0);