mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
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.
This commit is contained in:
parent
2ca95b7cfe
commit
6df383be4a
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ io_write_to_user_abort_pipe(void)
|
||||||
// handler. So ignore the errors and try to avoid warnings with
|
// handler. So ignore the errors and try to avoid warnings with
|
||||||
// GCC and glibc when _FORTIFY_SOURCE=2 is used.
|
// GCC and glibc when _FORTIFY_SOURCE=2 is used.
|
||||||
uint8_t b = '\0';
|
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;
|
(void)ret;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue