diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2024-10-02 12:08:04 +0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-10-03 22:04:24 +0200 |
| commit | ee510704a9f6c982e2740db816eeac325cc10c57 (patch) | |
| tree | ea983cd3a0d950d75b078ed262f2fa495bee6252 | |
| parent | fc058618d1596d29e89016750a1aaf64c9fe8832 (diff) | |
| download | focaccia-qemu-ee510704a9f6c982e2740db816eeac325cc10c57.tar.gz focaccia-qemu-ee510704a9f6c982e2740db816eeac325cc10c57.zip | |
qom: rename object_resolve_path_type() "ambiguousp"
Make it match the function declaration & documentation. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Link: https://lore.kernel.org/r/20241002080806.2868406-2-marcandre.lureau@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | qom/object.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qom/object.c b/qom/object.c index 28c5b66eab..0adbef2946 100644 --- a/qom/object.c +++ b/qom/object.c @@ -2184,7 +2184,7 @@ static Object *object_resolve_partial_path(Object *parent, } Object *object_resolve_path_type(const char *path, const char *typename, - bool *ambiguousp) + bool *ambiguous) { Object *obj; char **parts; @@ -2193,11 +2193,11 @@ Object *object_resolve_path_type(const char *path, const char *typename, assert(parts); if (parts[0] == NULL || strcmp(parts[0], "") != 0) { - bool ambiguous = false; + bool ambig = false; obj = object_resolve_partial_path(object_get_root(), parts, - typename, &ambiguous); - if (ambiguousp) { - *ambiguousp = ambiguous; + typename, &ambig); + if (ambiguous) { + *ambiguous = ambig; } } else { obj = object_resolve_abs_path(object_get_root(), parts + 1, typename); |