From: Michal Privoznik Date: Tue, 31 Jan 2023 15:23:58 +0000 (+0100) Subject: virDomainNetDefFormat: Rename @attrBuf to @targetAttrBuf X-Git-Tag: v9.1.0-rc1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58e0bd73e02b400deea67baed171db0e686daf27;p=thirdparty%2Flibvirt.git virDomainNetDefFormat: Rename @attrBuf to @targetAttrBuf The @attrBuf variable in virDomainNetDefFormat() is named too broadly. It holds attribute buffer to the element. Rename it to @targetAttrBuf then. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 0cd6020ea3..382c32db67 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -23685,7 +23685,7 @@ virDomainNetDefFormat(virBuffer *buf, const char *typeStr; virDomainHostdevDef *hostdef = NULL; char macstr[VIR_MAC_STRING_BUFLEN]; - g_auto(virBuffer) attrBuf = VIR_BUFFER_INITIALIZER; + g_auto(virBuffer) targetAttrBuf = VIR_BUFFER_INITIALIZER; const char *prefix = xmlopt ? xmlopt->config.netPrefix : NULL; /* publicActual is true if we should report the current state in @@ -23945,14 +23945,14 @@ virDomainNetDefFormat(virBuffer *buf, STRPREFIX(def->ifname, VIR_NET_GENERATED_MACVLAN_PREFIX) || (prefix && STRPREFIX(def->ifname, prefix)))))) { /* Skip auto-generated target names for inactive config. */ - virBufferEscapeString(&attrBuf, " dev='%s'", def->ifname); + virBufferEscapeString(&targetAttrBuf, " dev='%s'", def->ifname); } if (def->managed_tap != VIR_TRISTATE_BOOL_ABSENT) { - virBufferAsprintf(&attrBuf, " managed='%s'", + virBufferAsprintf(&targetAttrBuf, " managed='%s'", virTristateBoolTypeToString(def->managed_tap)); } - virXMLFormatElement(buf, "target", &attrBuf, NULL); + virXMLFormatElement(buf, "target", &targetAttrBuf, NULL); if (def->ifname_guest || def->ifname_guest_actual) { virBufferAddLit(buf, "