]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: dnsmasqCapsSetFromBuffer: use error label
authorJán Tomko <jtomko@redhat.com>
Tue, 14 Dec 2021 16:35:07 +0000 (17:35 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 15 Dec 2021 14:28:17 +0000 (15:28 +0100)
Rename 'fail' to 'error' to match the prevalent usage.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/util/virdnsmasq.c

index b62e353ceb5119031072cd743604af7ed6107164..90a1ea35b6ae278256129fc2218d0692c8afcd67 100644 (file)
@@ -620,12 +620,12 @@ dnsmasqCapsSetFromBuffer(dnsmasqCaps *caps, const char *buf)
 
     p = STRSKIP(buf, DNSMASQ_VERSION_STR);
     if (!p)
-       goto fail;
+       goto error;
 
     virSkipToDigit(&p);
 
     if (virParseVersionString(p, &caps->version, true) < 0)
-        goto fail;
+        goto error;
 
     if (strstr(buf, "--bind-dynamic"))
         dnsmasqCapsSet(caps, DNSMASQ_CAPS_BIND_DYNAMIC);
@@ -650,7 +650,7 @@ dnsmasqCapsSetFromBuffer(dnsmasqCaps *caps, const char *buf)
              dnsmasqCapsGet(caps, DNSMASQ_CAPS_RA_PARAM) ? "" : "NOT ");
     return 0;
 
fail:
error:
     p = strchr(buf, '\n');
     if (!p)
         len = strlen(buf);