aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 10:03:35 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 10:03:35 +0200
commit773d24ebf722822b027c3c61a5f7ae846ac6725d (patch)
treeb906538e4af81a979ea5aafa8ae9dcaeaf361a76
parentbd371af0b3bf41ddf282b3db139612f6531f3427 (diff)
downloadmpd-773d24ebf722822b027c3c61a5f7ae846ac6725d.tar.gz
mpd-773d24ebf722822b027c3c61a5f7ae846ac6725d.tar.xz
mpd-773d24ebf722822b027c3c61a5f7ae846ac6725d.zip
ZeroconfAvahi: remove "goto"
-rw-r--r--src/zeroconf/ZeroconfAvahi.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/zeroconf/ZeroconfAvahi.cxx b/src/zeroconf/ZeroconfAvahi.cxx
index 84e748167..9643802ae 100644
--- a/src/zeroconf/ZeroconfAvahi.cxx
+++ b/src/zeroconf/ZeroconfAvahi.cxx
@@ -111,7 +111,7 @@ static void avahiRegisterService(AvahiClient * c)
FormatError(avahi_domain,
"Failed to create avahi EntryGroup: %s",
avahi_strerror(avahi_client_errno(c)));
- goto fail;
+ return;
}
}
@@ -127,7 +127,7 @@ static void avahiRegisterService(AvahiClient * c)
if (ret < 0) {
FormatError(avahi_domain, "Failed to add service %s: %s",
SERVICE_TYPE, avahi_strerror(ret));
- goto fail;
+ return;
}
/* Tell the server to register the service group */
@@ -135,12 +135,8 @@ static void avahiRegisterService(AvahiClient * c)
if (ret < 0) {
FormatError(avahi_domain, "Failed to commit service group: %s",
avahi_strerror(ret));
- goto fail;
+ return;
}
- return;
-
-fail:
- return;
}
/* Callback when avahi changes state */