summaryrefslogtreecommitdiff
path: root/src/fcntl
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-04-21 13:34:58 -0400
committerRich Felker <dalias@aerifal.cx>2015-04-21 13:34:58 -0400
commitea1b6bb6123d2177508ddca438669ec96cfa0021 (patch)
treec7e7e9e2d99fc05daa53e45742b4c9eaae3c5384 /src/fcntl
parent086793ad99dc625fd1c47f96fc31ea8aa316b438 (diff)
downloadmusl-ea1b6bb6123d2177508ddca438669ec96cfa0021.tar.gz
musl-ea1b6bb6123d2177508ddca438669ec96cfa0021.tar.bz2
musl-ea1b6bb6123d2177508ddca438669ec96cfa0021.tar.xz
musl-ea1b6bb6123d2177508ddca438669ec96cfa0021.zip
remove dead case for F_SETLKW in fcntl
the first switch already returns in the F_SETLKW code path so it need not be handled in the second switch. moreover the code in the second switch is wrong for the F_SETLKW command: it's not cancellable.
Diffstat (limited to 'src/fcntl')
-rw-r--r--src/fcntl/fcntl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/fcntl/fcntl.c b/src/fcntl/fcntl.c
index 2c4f5351..ce615d0e 100644
--- a/src/fcntl/fcntl.c
+++ b/src/fcntl/fcntl.c
@@ -39,7 +39,6 @@ int fcntl(int fd, int cmd, ...)
}
switch (cmd) {
case F_SETLK:
- case F_SETLKW:
case F_GETLK:
case F_GETOWN_EX:
case F_SETOWN_EX: