From: Timo Sirainen Date: Tue, 30 Nov 2010 00:20:09 +0000 (+0000) Subject: askpass: Removed unnecessary code. X-Git-Tag: 2.0.8~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eadbe304f79d552b18b9e2d3f0f77b042922a1f4;p=thirdparty%2Fdovecot%2Fcore.git askpass: Removed unnecessary code. --- diff --git a/src/lib/askpass.c b/src/lib/askpass.c index 4deb68b4e5..2e5f81a9c4 100644 --- a/src/lib/askpass.c +++ b/src/lib/askpass.c @@ -14,7 +14,6 @@ static void askpass_str(const char *prompt, buffer_t *pass) { struct termios old_tio, tio; bool tty, restore_tio = FALSE; - size_t pos; char ch; int fd; @@ -40,7 +39,6 @@ static void askpass_str(const char *prompt, buffer_t *pass) } /* read the password */ - pos = 0; while (read(fd, &ch, 1) > 0) { if (ch == '\n' || ch == '\r') break;