aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_noblktap2.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-04-08 16:39:53 +0100
committerIan Campbell <ian.campbell@citrix.com>2011-04-08 16:39:53 +0100
commitbdd91be4931fce7caea91f9614c12b4ff335f821 (patch)
tree59c502cce5e0cfbc1f59d0d4e2a6f01fbefbb689 /tools/libxl/libxl_noblktap2.c
parent44714d9fb796f13c8854aba9d6fdf1d32cb0432f (diff)
downloadxen-bdd91be4931fce7caea91f9614c12b4ff335f821.tar.gz
xen-bdd91be4931fce7caea91f9614c12b4ff335f821.tar.bz2
xen-bdd91be4931fce7caea91f9614c12b4ff335f821.zip
libxl: refactor DISK_BACKEND_PHY handling in libxl_device_disk_add
A step on the path to sharing this code with the tail-end of the DISK_BACKEND_TAP case. I made the result of libxl__blktap_devpath non-const to achieve this. The existing caller calls libxl__strdup on the result but since the function is an internal one and the result is already garbage collected I think this is unnecessary and we can just use the non-const result directly. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_noblktap2.c')
-rw-r--r--tools/libxl/libxl_noblktap2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libxl/libxl_noblktap2.c b/tools/libxl/libxl_noblktap2.c
index 95fee973ed..a66346a286 100644
--- a/tools/libxl/libxl_noblktap2.c
+++ b/tools/libxl/libxl_noblktap2.c
@@ -21,9 +21,9 @@ int libxl__blktap_enabled(libxl__gc *gc)
return 0;
}
-const char *libxl__blktap_devpath(libxl__gc *gc,
- const char *disk,
- libxl_disk_format format)
+char *libxl__blktap_devpath(libxl__gc *gc,
+ const char *disk,
+ libxl_disk_format format)
{
return NULL;
}