aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcoopgamma.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-19 18:02:30 +0200
committerMattias Andrée <maandree@kth.se>2016-07-19 18:02:30 +0200
commit6d58ceafb5fac632e3392b6adce487c8626554a7 (patch)
treee7db28b5ede94e773a8a9886933f363468420b24 /src/libcoopgamma.c
parentm + add libcoopgamma_get_methods.3 (diff)
downloadlibcoopgamma-6d58ceafb5fac632e3392b6adce487c8626554a7.tar.gz
libcoopgamma-6d58ceafb5fac632e3392b6adce487c8626554a7.tar.bz2
libcoopgamma-6d58ceafb5fac632e3392b6adce487c8626554a7.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/libcoopgamma.c2
1 files changed, 1 insertions, 1 deletions
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;
}