aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libcoopgamma.c4
1 files 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);
}