From 959abed5c69eb6970e147adeb69c4c192ef67dc8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 23 Apr 2014 18:14:39 +0200 Subject: fix errors and a warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/passphrase.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/passphrase.c') 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 -- cgit v1.2.3-70-g09d2