projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
124d0d8
)
write_graphite: send_buf_fill is unsigned
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:38:35 +0000
(10:38 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:38:35 +0000
(10:38 +0200)
[src/write_graphite.c:183]: (style) Checking if unsigned variable 'send_buf_fill' is less than zero.
src/write_graphite.c
patch
|
blob
|
history
diff --git
a/src/write_graphite.c
b/src/write_graphite.c
index
0fa8bc3
..
0b8ab41
100644
(file)
--- 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);