build: fix build without i18n

If you compile without NLS support, where _() is a no-op macro,
then we end up passing a string literal to a char*, provoking:

In file included from virsh.c:3639:0:
virsh-edit.c: In function ‘cmdSaveImageEdit’:
virsh-edit.c:97:13: error: assignment discards ‘const’ qualifier from pointer target type [-Werror]
virsh-edit.c:106:13: error: assignment discards ‘const’ qualifier from pointer target type [-Werror]

* tools/virsh-edit.c: Be const-safe.
This commit is contained in:
Eric Blake 2012-06-06 21:13:57 -06:00
parent dd7bc51bc4
commit b2ecfe9795

View File

@ -55,7 +55,7 @@ do {
char *doc = NULL;
char *doc_edited = NULL;
char *doc_reread = NULL;
char *msg = NULL;
const char *msg = NULL;
/* Get the XML configuration of the object. */
doc = (EDIT_GET_XML);