diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2014-08-25 20:09:13 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-28 16:09:44 +0200 |
commit | dc6c4fe8378b2e94bcf2ee2efa62ed0aba9aa5cc (patch) | |
tree | b3ea695b3fc08f09633b96f74f929b6a9ce195f3 /xen-hvm.c | |
parent | c9f6552803d852d593dec9ef5bb39b7a61091963 (diff) | |
download | qemu-dc6c4fe8378b2e94bcf2ee2efa62ed0aba9aa5cc.zip qemu-dc6c4fe8378b2e94bcf2ee2efa62ed0aba9aa5cc.tar.gz qemu-dc6c4fe8378b2e94bcf2ee2efa62ed0aba9aa5cc.tar.bz2 |
xen-hvm: Constify string
It's constant, and sourced from existing const strings. Avoid dodgy
casts by converting to const.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'xen-hvm.c')
-rw-r--r-- | xen-hvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -71,7 +71,7 @@ static inline ioreq_t *xen_vcpu_ioreq(shared_iopage_t *shared_page, int vcpu) typedef struct XenPhysmap { hwaddr start_addr; ram_addr_t size; - char *name; + const char *name; hwaddr phys_offset; QLIST_ENTRY(XenPhysmap) list; @@ -330,7 +330,7 @@ go_physmap: physmap->start_addr = start_addr; physmap->size = size; - physmap->name = (char *)mr->name; + physmap->name = mr->name; physmap->phys_offset = phys_offset; QLIST_INSERT_HEAD(&state->physmap, physmap, list); |