From 048e71cd85e5ab1a91c60a53745c7706004cf3d0 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 24 May 2011 17:12:27 +0100 Subject: 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 Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/libxl_xshelp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/libxl/libxl_xshelp.c') 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; -- cgit v1.2.3