From ab30f567fb55cc0336b2e7018295bb23ba90abb5 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 8bcfa45eb..08592f6c0 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -2348,7 +2348,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