From: Rich Felker Date: Tue, 21 Apr 2015 17:34:58 +0000 (-0400) Subject: remove dead case for F_SETLKW in fcntl X-Git-Tag: v1.1.9~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ea1b6bb6123d2177508ddca438669ec96cfa0021;p=oweals%2Fmusl.git 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. --- 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: