diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2012-07-17 15:26:17 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-07-17 15:40:14 -0500 |
commit | 3b25597bcf7fa8c92ba2107fbdb260ce0eccd64b (patch) | |
tree | e4bb7d8789e928322655d511f44a9a78297bd85d /hw/qdev.h | |
parent | e1b4382cbf74f99992a0cf67a891bd82ab8cd68e (diff) |
constify value pointer for qdev_prop_set_string
qdev_prop_set_string uses object_property_set_str, which takes
a const char * for the value. Lets propagate the constness
into qdev_prop_set_string.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r-- | hw/qdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -316,7 +316,7 @@ void qdev_prop_set_uint16(DeviceState *dev, const char *name, uint16_t value); void qdev_prop_set_uint32(DeviceState *dev, const char *name, uint32_t value); void qdev_prop_set_int32(DeviceState *dev, const char *name, int32_t value); void qdev_prop_set_uint64(DeviceState *dev, const char *name, uint64_t value); -void qdev_prop_set_string(DeviceState *dev, const char *name, char *value); +void qdev_prop_set_string(DeviceState *dev, const char *name, const char *value); void qdev_prop_set_chr(DeviceState *dev, const char *name, CharDriverState *value); void qdev_prop_set_netdev(DeviceState *dev, const char *name, VLANClientState *value); void qdev_prop_set_vlan(DeviceState *dev, const char *name, VLANState *value); |