X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flibcollectdclient%2Fclient.c;h=eaee9c0f7cb0f411d199a1cfc8051212fe15fa84;hb=e460da6b5715e55c57731dcda31a228502b02b5b;hp=9ad61f6410a28db3331738147dd534beb72cf8b1;hpb=b57d6e25aa792f0461aee4e5bd6d1838c478af50;p=collectd.git diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index 9ad61f64..eaee9c0f 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -287,7 +287,7 @@ static int lcc_receive (lcc_connection_t *c, /* {{{ */ * beginning of the message. */ ptr = NULL; errno = 0; - res.status = strtol (buffer, &ptr, 0); + res.status = (int) strtol (buffer, &ptr, 0); if ((errno != 0) || (ptr == &buffer[0])) { lcc_set_errno (c, errno); @@ -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; }