projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f8fcdf
)
write_graphite: remove dead assignment
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 5 Jun 2016 12:35:36 +0000
(14:35 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 5 Jun 2016 12:35:36 +0000
(14:35 +0200)
status is immediately overwritten in the next line.
src/write_graphite.c
patch
|
blob
|
history
diff --git
a/src/write_graphite.c
b/src/write_graphite.c
index
5acda6e
..
3dc4df4
100644
(file)
--- a/
src/write_graphite.c
+++ b/
src/write_graphite.c
@@
-135,7
+135,7
@@
static void wg_reset_buffer (struct wg_callback *cb)
static int wg_send_buffer (struct wg_callback *cb)
{
- ssize_t status
= 0
;
+ ssize_t status;
status = swrite (cb->sock_fd, cb->send_buf, strlen (cb->send_buf));
if (status != 0)