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:
Andreas Färber 2013-01-15 02:55:10 +01:00 committed by Stefan Hajnoczi
parent a87eec766d
commit 3e84b48321
2 changed files with 2 additions and 2 deletions

View file

@ -900,7 +900,7 @@ Object *object_resolve_path_type(const char *path, const char *typename,
*
* Returns: The resolved object or NULL on path lookup failure.
*/
Object *object_resolve_path_component(Object *parent, gchar *part);
Object *object_resolve_path_component(Object *parent, const gchar *part);
/**
* object_property_add_child: