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.1.2~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0af70327f35ffde444f22d18729782d8cc4cfbbb;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 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 */