mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
a87eec766d
commit
3e84b48321
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue