From 8e0e3ab5c887adbb78984c7d25dd3fa869e74f4f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 21 Jul 2016 00:36:25 +0200 Subject: m fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libcoopgamma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c index 19ad280..7d84661 100644 --- a/src/libcoopgamma.c +++ b/src/libcoopgamma.c @@ -1122,7 +1122,7 @@ static char* libcoopgamma_query(const char* restrict method, const char* restric goto fail; if (status) { - errno = INVAL; + errno = EINVAL; if ((n == sizeof(int)) && (*(int*)msg != 0)) errno = *(int*)msg; } @@ -1423,7 +1423,7 @@ int libcoopgamma_set_nonblocking(libcoopgamma_context_t* restrict ctx, int nonbl flags |= O_NONBLOCK; else flags &= ~O_NONBLOCK; - return -(fcntl(ctx->fd, F_SETFL, flags) == -1) + return -(fcntl(ctx->fd, F_SETFL, flags) == -1); } -- cgit v1.2.3-70-g09d2