diff options
Diffstat (limited to 'missing/flock.c')
-rw-r--r-- | missing/flock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/missing/flock.c b/missing/flock.c index b02f8bf832..763c49d675 100644 --- a/missing/flock.c +++ b/missing/flock.c @@ -27,7 +27,7 @@ int flock(int fd, int operation) { struct flock lock; - + switch (operation & ~LOCK_NB) { case LOCK_SH: lock.l_type = F_RDLCK; @@ -44,7 +44,7 @@ flock(int fd, int operation) } lock.l_whence = SEEK_SET; lock.l_start = lock.l_len = 0L; - + return fcntl(fd, (operation & LOCK_NB) ? F_SETLK : F_SETLKW, &lock); } |