]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
askpass: Removed unnecessary code.
authorTimo Sirainen <tss@iki.fi>
Tue, 30 Nov 2010 00:20:09 +0000 (00:20 +0000)
committerTimo Sirainen <tss@iki.fi>
Tue, 30 Nov 2010 00:20:09 +0000 (00:20 +0000)
src/lib/askpass.c

index 4deb68b4e57f6cdd61902af17709b6b01dcccad3..2e5f81a9c4aab139e9b7768725a8bbc5913a620c 100644 (file)
@@ -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;