From: Florian Forster Date: Mon, 16 Feb 2009 21:08:45 +0000 (+0100) Subject: libcollectdclient: Use `EILSEQ' rather than `EPROTO'. X-Git-Tag: collectd-4.6.0~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4dd2f8658b39af8bd4fe6ece7c72cedf4aa5c9a2;p=collectd.git libcollectdclient: Use `EILSEQ' rather than `EPROTO'. EPROTO is an XSR (XSI streams) extension and not supported on some platforms (OpenBSD, apparently). --- diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index 847eafc9..93eadb75 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -678,7 +678,7 @@ int lcc_getval (lcc_connection_t *c, lcc_identifier_t *ident, /* {{{ */ key = res.lines[i]; value = strchr (key, '='); if (value == NULL) - BAIL_OUT (EPROTO); + BAIL_OUT (EILSEQ); *value = 0; value++; @@ -885,7 +885,7 @@ int lcc_listval (lcc_connection_t *c, /* {{{ */ if (*ident_str == 0) { - lcc_set_errno (c, EPROTO); + lcc_set_errno (c, EILSEQ); status = -1; break; }