INFTIM is a BSDism; use -1 instead.

git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@688 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2013-07-11 16:40:08 +00:00
parent 93d104bfd6
commit c05b6dd046
1 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ prompt_tty(int ifd, int ofd, const char *message, char *response, int echo)
remaining_ms = remaining.tv_sec * 1000 +
remaining.tv_usec / 1000;
} else {
remaining_ms = INFTIM;
remaining_ms = -1;
}
if ((ret = poll(&pfd, 1, remaining_ms)) < 0) {
serrno = errno;
@ -250,7 +250,7 @@ prompt_notty(const char *message, char *response)
remaining_ms = remaining.tv_sec * 1000 +
remaining.tv_usec / 1000;
} else {
remaining_ms = INFTIM;
remaining_ms = -1;
}
if ((ret = poll(&pfd, 1, remaining_ms)) < 0) {
/* interrupt is ok, everything else -> bail */