mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
util: dnsmasqCapsSetFromBuffer: use error label
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>
This commit is contained in:
parent
be592a6ebb
commit
b9a4c5f8c8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user