mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
cli: use a signed type for return value
read() returns ssize_t where a negative number is used for errors. The value was read into a size_t and then checked for <0. Change to ssize_t to handle the negative number.
This commit is contained in:
parent
127d69e4a0
commit
fa5c2000f9
1 changed files with 1 additions and 1 deletions
|
|
@ -1032,7 +1032,7 @@ static void do_input(void *data, int fd, enum spa_io mask)
|
|||
{
|
||||
struct data *d = data;
|
||||
char buf[4096], *error;
|
||||
size_t r;
|
||||
ssize_t r;
|
||||
|
||||
if (mask & SPA_IO_IN) {
|
||||
while (true) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue