From e43181a5eb45bf8834a703b8601f93b610ec94ab Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 18 Oct 2010 16:52:37 +0100 Subject: libxc: remove unnecessary double indirection from xc_readconsolering The double indirection has been unnecessary since 9867:ec61a8c25429, there is no possibility of the buffer being reallocated now. Signed-off-by: Ian Campbell Signed-off-by: Ian Jackson --- tools/console/daemon/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/console') diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index 691b0f2786..4b7f58f4a0 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -887,7 +887,7 @@ static void handle_hv_logs(void) if ((port = xc_evtchn_pending(xce_handle)) == -1) return; - if (xc_readconsolering(xch, &bufptr, &size, 0, 1, &index) == 0 && size > 0) { + if (xc_readconsolering(xch, bufptr, &size, 0, 1, &index) == 0 && size > 0) { int logret; if (log_time_hv) logret = write_with_timestamp(log_hv_fd, buffer, size, -- cgit v1.2.3