diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-04-21 13:34:58 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-04-21 13:34:58 -0400 |
commit | ea1b6bb6123d2177508ddca438669ec96cfa0021 (patch) | |
tree | c7e7e9e2d99fc05daa53e45742b4c9eaae3c5384 | |
parent | 086793ad99dc625fd1c47f96fc31ea8aa316b438 (diff) | |
download | musl-ea1b6bb6123d2177508ddca438669ec96cfa0021.tar.gz 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.
-rw-r--r-- | src/fcntl/fcntl.c | 1 |
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: |