diff options
author | Christian Borntraeger | 2012-07-17 15:26:17 +0200 |
---|---|---|
committer | Anthony Liguori | 2012-07-17 22:40:14 +0200 |
commit | 3b25597bcf7fa8c92ba2107fbdb260ce0eccd64b (patch) | |
tree | e4bb7d8789e928322655d511f44a9a78297bd85d /hw/qdev-properties.c | |
parent | doc: Fix indefinite article an -> a before nouns that begin with 'h' (diff) | |
download | qemu-3b25597bcf7fa8c92ba2107fbdb260ce0eccd64b.tar.gz qemu-3b25597bcf7fa8c92ba2107fbdb260ce0eccd64b.tar.xz qemu-3b25597bcf7fa8c92ba2107fbdb260ce0eccd64b.zip |
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-properties.c')
-rw-r--r-- | hw/qdev-properties.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index 0b894620c9..3571cf3017 100644 --- a/hw/qdev-properties.c +++ b/hw/qdev-properties.c @@ -1123,7 +1123,7 @@ void qdev_prop_set_uint64(DeviceState *dev, const char *name, uint64_t value) assert_no_error(errp); } -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) { Error *errp = NULL; object_property_set_str(OBJECT(dev), value, name, &errp); |