]>
Commit | Line | Data |
---|---|---|
c29ea386 JR |
1 | --- a/lib/checkpw.c |
2 | +++ b/lib/checkpw.c | |
3 | @@ -587,16 +587,14 @@ static int read_wait(int fd, unsigned de | |
4 | /* Timeout. */ | |
5 | errno = ETIMEDOUT; | |
6 | return -1; | |
7 | - case +1: | |
8 | - if (FD_ISSET(fd, &rfds)) { | |
9 | - /* Success, file descriptor is readable. */ | |
10 | - return 0; | |
11 | - } | |
12 | - return -1; | |
13 | case -1: | |
14 | if (errno == EINTR || errno == EAGAIN) | |
15 | continue; | |
16 | default: | |
17 | + if (FD_ISSET(fd, &rfds)) { | |
18 | + /* Success, file descriptor is readable. */ | |
19 | + return 0; | |
20 | + } | |
21 | /* Error catch-all. */ | |
22 | return -1; | |
23 | } |