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>
virNWFilterHashTablePtr filterparams = NULL;
virDomainActualNetDefPtr actual = NULL;
xmlNodePtr oldnode = ctxt->node;
- int ret, val;
+ int rv, val;
if (VIR_ALLOC(def) < 0)
return NULL;
}
}
- 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;