mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qom: Constify object_get_canonical_path{,_component}()'s parameter
Suggested-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200527084754.7531-2-armbru@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
7d3660e798
commit
e8512dfa4d
2 changed files with 4 additions and 4 deletions
|
@ -1881,7 +1881,7 @@ object_property_add_const_link(Object *obj, const char *name,
|
|||
NULL, OBJ_PROP_LINK_DIRECT);
|
||||
}
|
||||
|
||||
char *object_get_canonical_path_component(Object *obj)
|
||||
char *object_get_canonical_path_component(const Object *obj)
|
||||
{
|
||||
ObjectProperty *prop = NULL;
|
||||
GHashTableIter iter;
|
||||
|
@ -1906,7 +1906,7 @@ char *object_get_canonical_path_component(Object *obj)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
char *object_get_canonical_path(Object *obj)
|
||||
char *object_get_canonical_path(const Object *obj)
|
||||
{
|
||||
Object *root = object_get_root();
|
||||
char *newpath, *path = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue