aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_xshelp.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-05-24 17:12:27 +0100
committerIan Campbell <ian.campbell@citrix.com>2011-05-24 17:12:27 +0100
commit048e71cd85e5ab1a91c60a53745c7706004cf3d0 (patch)
tree589d47c0c6a35eef41ec42c39422847eff3a10d7 /tools/libxl/libxl_xshelp.c
parentbdf5d459953372a6e0347258ebc15ec58af0bf7d (diff)
downloadxen-048e71cd85e5ab1a91c60a53745c7706004cf3d0.tar.gz
xen-048e71cd85e5ab1a91c60a53745c7706004cf3d0.tar.bz2
xen-048e71cd85e5ab1a91c60a53745c7706004cf3d0.zip
libxl: libxl__xs_write format string should be const.
George Dunlap reports that gcc 4.4.3 complains: libxl_dm.c: In function libxl__create_device_mode: libxl_dm.c:776: error: format not a string literal and no format arguments And indeed the format argument here is a char * from libxl__domain_bios(). Make the argument to libxl__xs_write a const char * and change libxl__domain_bios to return a const char too. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_xshelp.c')
-rw-r--r--tools/libxl/libxl_xshelp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_xshelp.c b/tools/libxl/libxl_xshelp.c
index 3dc9239bcb..1df377c707 100644
--- a/tools/libxl/libxl_xshelp.c
+++ b/tools/libxl/libxl_xshelp.c
@@ -69,7 +69,7 @@ int libxl__xs_writev(libxl__gc *gc, xs_transaction_t t,
}
int libxl__xs_write(libxl__gc *gc, xs_transaction_t t,
- char *path, char *fmt, ...)
+ char *path, const char *fmt, ...)
{
libxl_ctx *ctx = libxl__gc_owner(gc);
char *s;