From 0af70327f35ffde444f22d18729782d8cc4cfbbb Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 22 Jan 2013 15:19:08 -0500 Subject: [PATCH] Fix: wrong variable type for read() return value Signed-off-by: David Goulet --- src/common/consumer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/consumer.c b/src/common/consumer.c index 15fc9b09f..59b0a1ede 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -2351,7 +2351,7 @@ void *consumer_thread_data_poll(void *data) * array update over low-priority reads. */ if (pollfd[nb_fd].revents & (POLLIN | POLLPRI)) { - size_t pipe_readlen; + ssize_t pipe_readlen; DBG("consumer_data_pipe wake up"); /* Consume 1 byte of pipe data */ -- 2.34.1