diff options
author | sinanmohd <sinan@sinanmohd.com> | 2023-12-30 18:25:22 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2023-12-30 18:25:22 +0530 |
commit | 5953250459588336333998bfc6d50f97fadb8870 (patch) | |
tree | 4cb16ff922396d7560a968389995b3826e719f66 | |
parent | 84e02a1122595bafee61b5dc4f4716b7c9146e6f (diff) |
pass_util/getpass: size_t -> ssize_t
-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); |