projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b6dd00
)
src/libcollectdclient/client.c: Fix "Dead assignment" warning.
author
Florian Forster
<octo@collectd.org>
Thu, 18 Jun 2015 07:16:18 +0000
(09:16 +0200)
committer
Florian Forster
<octo@collectd.org>
Thu, 18 Jun 2015 07:25:44 +0000
(09:25 +0200)
src/libcollectdclient/client.c
patch
|
blob
|
history
diff --git
a/src/libcollectdclient/client.c
b/src/libcollectdclient/client.c
index
49a4d87
..
5db98e5
100644
(file)
--- a/
src/libcollectdclient/client.c
+++ b/
src/libcollectdclient/client.c
@@
-500,7
+500,6
@@
static int lcc_open_netsocket (lcc_connection_t *c, /* {{{ */
if (fd < 0)
{
status = errno;
- fd = -1;
continue;
}
@@
-509,7
+508,6
@@
static int lcc_open_netsocket (lcc_connection_t *c, /* {{{ */
{
status = errno;
close (fd);
- fd = -1;
continue;
}
@@
-518,7
+516,6
@@
static int lcc_open_netsocket (lcc_connection_t *c, /* {{{ */
{
status = errno;
close (fd);
- fd = -1;
continue;
}