From c05b6dd046e5eaecd8e88055db98205f0909f0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Thu, 11 Jul 2013 16:40:08 +0000 Subject: [PATCH] INFTIM is a BSDism; use -1 instead. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@688 185d5e19-27fe-0310-9dcf-9bff6b9f3609 --- lib/libpam/openpam_ttyconv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libpam/openpam_ttyconv.c b/lib/libpam/openpam_ttyconv.c index b3721dc..df4f8fe 100644 --- a/lib/libpam/openpam_ttyconv.c +++ b/lib/libpam/openpam_ttyconv.c @@ -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 */