aboutsummaryrefslogtreecommitdiff
path: root/ffi/fccntl_wrap.h
diff options
context:
space:
mode:
Diffstat (limited to 'ffi/fccntl_wrap.h')
-rw-r--r--ffi/fccntl_wrap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffi/fccntl_wrap.h b/ffi/fccntl_wrap.h
index 0555e24..7cfc902 100644
--- a/ffi/fccntl_wrap.h
+++ b/ffi/fccntl_wrap.h
@@ -71,7 +71,7 @@ int flow_get_flags(int fd)
{
uint32_t flags;
- if (fccntl(fd, FLOWGFLAGS, &flags))
+ if (fccntl(fd, FLOWGFLAGS, &flags) < 0)
return -EPERM;
return (int) flags;
@@ -86,7 +86,7 @@ int flow_get_frct_flags(int fd)
{
uint16_t flags;
- if (fccntl(fd, FRCTGFLAGS, &flags))
+ if (fccntl(fd, FRCTGFLAGS, &flags) < 0)
return -EPERM;
return (int) flags;