aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_misc.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-10-18 16:52:37 +0100
committerIan Campbell <ian.campbell@citrix.com>2010-10-18 16:52:37 +0100
commite43181a5eb45bf8834a703b8601f93b610ec94ab (patch)
tree15f6c2908edb90b84ca033e69b309fdf0e71213c /tools/libxc/xc_misc.c
parentf114466a23ceaf058ac13b08e83725e6354bc519 (diff)
downloadxen-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/libxc/xc_misc.c')
-rw-r--r--tools/libxc/xc_misc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/libxc/xc_misc.c b/tools/libxc/xc_misc.c
index c2efa377c1..a5f179a403 100644
--- a/tools/libxc/xc_misc.c
+++ b/tools/libxc/xc_misc.c
@@ -22,13 +22,12 @@
#include <xen/hvm/hvm_op.h>
int xc_readconsolering(xc_interface *xch,
- char **pbuffer,
+ char *buffer,
unsigned int *pnr_chars,
int clear, int incremental, uint32_t *pindex)
{
int ret;
DECLARE_SYSCTL;
- char *buffer = *pbuffer;
unsigned int nr_chars = *pnr_chars;
sysctl.cmd = XEN_SYSCTL_readconsole;