]> xenbits.xensource.com Git - libvirt.git/commitdiff
virDomainNetDefParseXML: s/ret/rv/
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 23 Jan 2017 11:58:23 +0000 (12:58 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 25 Jan 2017 08:18:49 +0000 (09:18 +0100)
We use @ret to hold the actual return value of the function we
are currently in. To hold a return value of a function called we
use different variables: @rv, @rc, etc. Honour this naming
scheme in virDomainNetDefParseXML too.

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

index b9092bddeb3b364a7ca2fd4567bce36aca82ddfd..26bb0fdd0aa71b500295a5428abd2eec23b0e4f0 100644 (file)
@@ -9343,7 +9343,7 @@ virDomainNetDefParseXML(virDomainXMLOptionPtr xmlopt,
     virNWFilterHashTablePtr filterparams = NULL;
     virDomainActualNetDefPtr actual = NULL;
     xmlNodePtr oldnode = ctxt->node;
-    int ret, val;
+    int rv, val;
 
     if (VIR_ALLOC(def) < 0)
         return NULL;
@@ -10041,10 +10041,10 @@ virDomainNetDefParseXML(virDomainXMLOptionPtr xmlopt,
         }
     }
 
-    ret = virXPathULong("string(./tune/sndbuf)", ctxt, &def->tune.sndbuf);
-    if (ret >= 0) {
+    rv = virXPathULong("string(./tune/sndbuf)", ctxt, &def->tune.sndbuf);
+    if (rv >= 0) {
         def->tune.sndbuf_specified = true;
-    } else if (ret == -2) {
+    } else if (rv == -2) {
         virReportError(VIR_ERR_XML_ERROR, "%s",
                        _("sndbuf must be a positive integer"));
         goto error;