diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-10-18 16:52:37 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-10-18 16:52:37 +0100 |
commit | e43181a5eb45bf8834a703b8601f93b610ec94ab (patch) | |
tree | 15f6c2908edb90b84ca033e69b309fdf0e71213c /tools/console | |
parent | f114466a23ceaf058ac13b08e83725e6354bc519 (diff) | |
download | xen-e43181a5eb45bf8834a703b8601f93b610ec94ab.tar.gz xen-e43181a5eb45bf8834a703b8601f93b610ec94ab.tar.bz2 xen-e43181a5eb45bf8834a703b8601f93b610ec94ab.zip |
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 <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/console')
-rw-r--r-- | tools/console/daemon/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |