]> xenbits.xensource.com Git - libvirt.git/commitdiff
domain_conf: comment not match the code below
authorAdam Julis <ajulis@redhat.com>
Thu, 4 Jul 2024 11:52:17 +0000 (13:52 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Jul 2024 08:00:29 +0000 (10:00 +0200)
The outdated comment refers to a non-existent member in the
virDomainObj structure.

Signed-off-by: Adam Julis <ajulis@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c

index bfef89e1beae7b4bd4f24f4c1d6fdbb9511b545c..eef3629a2d6e403a2e99e7f7645e6d02e20cd09e 100644 (file)
@@ -4449,7 +4449,7 @@ virDomainObjGetDefs(virDomainObj *vm,
  * @live: set to true if live config was returned (may be omitted)
  *
  * Helper function to resolve @flags and return the correct domain pointer
- * object. This function returns one of @vm->def or @vm->persistentDef
+ * object. This function returns one of @vm->def or @vm->newDef
  * according to @flags. @live is set to true if the live vm config will be
  * returned. This helper should be used only in APIs that guarantee
  * that @flags contains exactly one of VIR_DOMAIN_AFFECT_LIVE or
@@ -4489,7 +4489,7 @@ virDomainObjGetOneDefState(virDomainObj *vm,
  * @flags: for virDomainModificationImpact
  *
  * Helper function to resolve @flags and return the correct domain pointer
- * object. This function returns one of @vm->def or @vm->persistentDef
+ * object. This function returns one of @vm->def or @vm->newDef
  * according to @flags. This helper should be used only in APIs that guarantee
  * that @flags contains exactly one of VIR_DOMAIN_AFFECT_LIVE or
  * VIR_DOMAIN_AFFECT_CONFIG and not both.