diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-05-14 23:17:52 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-05-14 23:17:52 +0000 |
commit | 0c99a8d8aa8ebfabe4d72d092a8c0d8298a233ba (patch) | |
tree | 0badc2c39a194539955defbf576e8daf5fed843c /src/libstddjb/fd_islocked.c | |
parent | d7fdd3f5cb297cddf08b8962040e48095893ab02 (diff) | |
download | skalibs-0c99a8d8aa8ebfabe4d72d092a8c0d8298a233ba.tar.xz |
Cosmetic fixes
Diffstat (limited to 'src/libstddjb/fd_islocked.c')
-rw-r--r-- | src/libstddjb/fd_islocked.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/fd_islocked.c b/src/libstddjb/fd_islocked.c index 8d5ef78..50603c0 100644 --- a/src/libstddjb/fd_islocked.c +++ b/src/libstddjb/fd_islocked.c @@ -14,5 +14,5 @@ int fd_islocked (int fd) .l_start = 0, .l_len = 0 } ; - return fcntl(fd, F_GETLK, &fl) < 0 ? -1 : fl.l_type != F_UNLCK ; + return fcntl(fd, F_GETLK, &fl) == -1 ? -1 : fl.l_type != F_UNLCK ; } |