X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flibcollectdclient%2Fclient.c;h=a97dc509e4d7ff7e94b491f28244ad9e9e1d10cc;hb=9ad5eefaa9dcc557c9117f8692cec1792f7ac7f0;hp=49a4d8792c5c1aa991d412dd4a95dcaea4d8c8fd;hpb=967685afeaff2cb4f7e4f733f17df95363727c4f;p=collectd.git diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index 49a4d879..a97dc509 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -84,7 +84,7 @@ _b[sizeof (_b) - 1] = 0; \ SSTRCAT ((d), _b); \ } while (0) - + #define LCC_SET_ERRSTR(c, ...) do { \ snprintf ((c)->errbuf, sizeof ((c)->errbuf), __VA_ARGS__); \ @@ -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; }