diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-12 06:05:58 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-03-11 21:45:26 +0200 |
commit | 6df383be4a22963e87ee06f9ac630d4c0ed927c9 (patch) | |
tree | 33d2969dc83c543f6123712eb5339cfc9263c941 | |
parent | liblzma: Silence warnings from clang -Wconditional-uninitialized. (diff) | |
download | xz-6df383be4a22963e87ee06f9ac630d4c0ed927c9.tar.xz |
xz: Use ssize_t for the to-be-ignored return value from write(fd, ptr, 1).
It makes no difference here as the return value fits into an int
too and it then gets ignored but this looks better.
Diffstat (limited to '')
-rw-r--r-- | src/xz/file_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/file_io.c b/src/xz/file_io.c index 41e4c2d8..61629ed3 100644 --- a/src/xz/file_io.c +++ b/src/xz/file_io.c @@ -140,7 +140,7 @@ io_write_to_user_abort_pipe(void) // handler. So ignore the errors and try to avoid warnings with // GCC and glibc when _FORTIFY_SOURCE=2 is used. uint8_t b = '\0'; - const int ret = write(user_abort_pipe[1], &b, 1); + const ssize_t ret = write(user_abort_pipe[1], &b, 1); (void)ret; return; } |