diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-21 00:36:25 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-21 00:36:45 +0200 |
commit | 8e0e3ab5c887adbb78984c7d25dd3fa869e74f4f (patch) | |
tree | 325a8144a06995a7837997cc9dd942dd2388b417 /src | |
parent | m + Add libcoopgamma_get_gamma_info_send.3 (diff) | |
download | libcoopgamma-8e0e3ab5c887adbb78984c7d25dd3fa869e74f4f.tar.gz libcoopgamma-8e0e3ab5c887adbb78984c7d25dd3fa869e74f4f.tar.bz2 libcoopgamma-8e0e3ab5c887adbb78984c7d25dd3fa869e74f4f.tar.xz |
m fix
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/libcoopgamma.c | 4 |
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); } |