From: David Goulet Date: Tue, 22 Jan 2013 20:19:08 +0000 (-0500) Subject: Fix: wrong variable type for read() return value X-Git-Tag: v2.2.0-rc1~90 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ab30f567fb55cc0336b2e7018295bb23ba90abb5;p=lttng-tools.git Fix: wrong variable type for read() return value Signed-off-by: David Goulet --- 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 */