aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--src/passphrase.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index d4da9fb..331e90c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,6 +12,9 @@ obj/
*.out
*.gch
*.info
+*.pdf
+*.ps
+*.dvi
*.gz
*.bz2
*.xz
diff --git a/src/passphrase.c b/src/passphrase.c
index 3492df2..2098b31 100644
--- a/src/passphrase.c
+++ b/src/passphrase.c
@@ -308,7 +308,7 @@ char* passphrase_read(void)
xflush();
if (len == size)
{
- if ((rc = xrealloc(rc, size, size << 1L)) == NULL)
+ if ((rc = xrealloc(rc, (size_t)size, (size_t)size << 1)) == NULL)
return NULL;
size <<= 1L;
}
@@ -353,9 +353,9 @@ void passphrase_disable_echo(void)
tcgetattr(STDIN_FILENO, &stty);
saved_stty = stty;
- stty.c_lflag &= ~ECHO;
+ stty.c_lflag &= (tcflag_t)~ECHO;
#if defined(PASSPHRASE_STAR) || defined(PASSPHRASE_MOVE)
- stty.c_lflag &= ~ICANON;
+ stty.c_lflag &= (tcflag_t)~ICANON;
#endif
tcsetattr(STDIN_FILENO, TCSAFLUSH, &stty);
#endif