From: Lasse Collin Date: Thu, 12 Jan 2023 04:05:58 +0000 (+0200) Subject: xz: Use ssize_t for the to-be-ignored return value from write(fd, ptr, 1). X-Git-Tag: v5.4.2~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ccedb09724c998c39d708c945f6da5852c39e13;p=thirdparty%2Fxz.git 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. --- diff --git a/src/xz/file_io.c b/src/xz/file_io.c index a5841b37..aca9ebae 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; }