From 4dd2f8658b39af8bd4fe6ece7c72cedf4aa5c9a2 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 16 Feb 2009 22:08:45 +0100 Subject: [PATCH] libcollectdclient: Use `EILSEQ' rather than `EPROTO'. EPROTO is an XSR (XSI streams) extension and not supported on some platforms (OpenBSD, apparently). --- src/libcollectdclient/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.11.0