aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-23 18:14:39 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-23 18:14:39 +0200
commit959abed5c69eb6970e147adeb69c4c192ef67dc8 (patch)
treee2ad66b8a81ae33e5f0946b813186a22447d1081
parentmissed the putchar:s (diff)
downloadlibpassphrase-1398269691.tar.gz
libpassphrase-1398269691.tar.bz2
libpassphrase-1398269691.tar.xz
fix errors and a warning1398269691
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/passphrase.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/passphrase.c b/src/passphrase.c
index 0054091..dd0206c 100644
--- a/src/passphrase.c
+++ b/src/passphrase.c
@@ -36,7 +36,7 @@ static struct termios saved_stty;
#ifndef PASSPHRASE_REALLOC
-static inline char* xrealloc(char* array, size_t cur_size, size_t new_size)
+static char* xrealloc(char* array, size_t cur_size, size_t new_size)
{
char* rc = malloc(new_size * sizeof(char));
size_t i;
@@ -57,10 +57,10 @@ static inline char* xrealloc(char* array, size_t cur_size, size_t new_size)
# define xprintf(...) /* do nothing */
# define xflush() /* do nothing */
#elif defined(PASSPHRASE_MOVE) || defined(PASSPHRASE_STAR)
-# define xprintf(FORMAT, ...) fprintf(stderr, FORMAT, __VA_ARGS__)
-# define xflush() fflush(stderr)
+# define xprintf(...) fprintf(stderr, __VA_ARGS__)
+# define xflush() fflush(stderr)
#else
-# define xflush() fflush(stderr)
+# define xflush() fflush(stderr)
#endif
@@ -298,7 +298,7 @@ char* passphrase_read(void)
{
if (len == 0)
continue;
- xprintf("%s", "\033[D \033[D");
+ xprintf("\033[D \033[D");
xflush();
*(rc + --len) = 0;
#ifdef DEBUG