From 6d58ceafb5fac632e3392b6adce487c8626554a7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 19 Jul 2016 18:02:30 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libcoopgamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c index 3f21247..9cf6b2a 100644 --- a/src/libcoopgamma.c +++ b/src/libcoopgamma.c @@ -1126,7 +1126,7 @@ static char* libcoopgamma_query(const char* restrict method, const char* restric goto fail; if (status) { - errno = EPIPE; + errno = INVAL; if ((n == sizeof(int)) && (*(int*)msg != 0)) errno = *(int*)msg; } -- cgit v1.2.3-70-g09d2