Ver Fonte

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>
Marc-André Lureau há 10 meses atrás
pai
commit
ee510704a9
1 ficheiros alterados com 5 adições e 5 exclusões
  1. 5 5
      qom/object.c

+ 5 - 5
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,
 Object *object_resolve_path_type(const char *path, const char *typename,
-                                 bool *ambiguousp)
+                                 bool *ambiguous)
 {
 {
     Object *obj;
     Object *obj;
     char **parts;
     char **parts;
@@ -2193,11 +2193,11 @@ Object *object_resolve_path_type(const char *path, const char *typename,
     assert(parts);
     assert(parts);
 
 
     if (parts[0] == NULL || strcmp(parts[0], "") != 0) {
     if (parts[0] == NULL || strcmp(parts[0], "") != 0) {
-        bool ambiguous = false;
+        bool ambig = false;
         obj = object_resolve_partial_path(object_get_root(), parts,
         obj = object_resolve_partial_path(object_get_root(), parts,
-                                          typename, &ambiguous);
-        if (ambiguousp) {
-            *ambiguousp = ambiguous;
+                                          typename, &ambig);
+        if (ambiguous) {
+            *ambiguous = ambig;
         }
         }
     } else {
     } else {
         obj = object_resolve_abs_path(object_get_root(), parts + 1, typename);
         obj = object_resolve_abs_path(object_get_root(), parts + 1, typename);