virt plugin: fix a few build warnings
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 23 Dec 2016 17:47:10 +0000 (18:47 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 23 Dec 2016 17:47:10 +0000 (18:47 +0100)
commit4b05cf4141a735bcbc734ec8e68b905f16deef6c
tree055480d17b9f37f7d0554b5082bde3659f6e3d9f
parentda38e7c1395cac9dd95de963972a4faa60375ca1
virt plugin: fix a few build warnings

src/virt.c:939:13: warning: initializing 'char *' with an expression of type 'const char [34]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
      char *bd_xmlpath = "/domain/devices/disk/target[@dev]";
            ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/virt.c:941:20: warning: assigning to 'char *' from 'const char [34]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        bd_xmlpath = "/domain/devices/disk/source[@dev]";
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/virt.c