diff options
-rw-r--r-- | pass_util.c | 4 | ||||
-rw-r--r-- | pass_util.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pass_util.c b/pass_util.c index 01fb8b3..e366cde 100644 --- a/pass_util.c +++ b/pass_util.c @@ -99,9 +99,9 @@ const char *pass_cat(const char *path) return r ? NULL : pass_out; } -size_t pass_getpass(char **lineptr, size_t *n, FILE *stream) +ssize_t pass_getpass(char **lineptr, size_t *n, FILE *stream) { - int r; + ssize_t r; struct termios new, old; r = tcgetattr(fileno(stream), &old); diff --git a/pass_util.h b/pass_util.h index 6d03285..aa49c8a 100644 --- a/pass_util.h +++ b/pass_util.h @@ -5,4 +5,4 @@ int pass_init(const char *fpr); const char *pass_cat(const char *path); int pass_add(const char *path, const char *pass, size_t n); -size_t pass_getpass(char **lineptr, size_t *n, FILE *stream); +ssize_t pass_getpass(char **lineptr, size_t *n, FILE *stream); |