[libvirt PATCH 01/17] util: dnsmasqCapsSetFromBuffer: use error label

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rename 'fail' to 'error' to match the prevalent usage.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/util/virdnsmasq.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/util/virdnsmasq.c b/src/util/virdnsmasq.c
index b62e353ceb..90a1ea35b6 100644
--- a/src/util/virdnsmasq.c
+++ b/src/util/virdnsmasq.c
@@ -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);
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux