diff options
author | Andreas Färber | 2013-01-15 02:55:10 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2013-01-15 10:54:23 +0100 |
commit | 3e84b4832180db2aa6187b6b971054bc3ca68be0 (patch) | |
tree | 09f4fd58a3378ce5b2128c96076dc6eb4a680afb /qom | |
parent | Add libcacard/trace/generated-tracers.c to .gitignore (diff) | |
download | qemu-3e84b4832180db2aa6187b6b971054bc3ca68be0.tar.gz qemu-3e84b4832180db2aa6187b6b971054bc3ca68be0.tar.xz qemu-3e84b4832180db2aa6187b6b971054bc3ca68be0.zip |
qom: Make object_resolve_path_component() path argument const
A usage with a hardcoded partial path such as
object_resolve_path_component(obj, "foo")
is totally valid but currently leads to a compilation error. Fix this.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qom')
-rw-r--r-- | qom/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qom/object.c b/qom/object.c index 351b88c817..03e6f24d28 100644 --- a/qom/object.c +++ b/qom/object.c @@ -1017,7 +1017,7 @@ gchar *object_get_canonical_path(Object *obj) return newpath; } -Object *object_resolve_path_component(Object *parent, gchar *part) +Object *object_resolve_path_component(Object *parent, const gchar *part) { ObjectProperty *prop = object_property_find(parent, part, NULL); if (prop == NULL) { |