aboutsummaryrefslogtreecommitdiffstats
path: root/src/zeroconf-avahi.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-16 00:23:00 +0100
committerMax Kellermann <max@duempel.org>2013-01-16 00:23:00 +0100
commitb7cf279d6da121d0bb0b274ab9581b697717b5a7 (patch)
treee030aad0f09e8e6b0f77a2875f8f58910c21dd03 /src/zeroconf-avahi.c
parentc614e550d9752c650e9b9f58d412fdba2f499e28 (diff)
downloadmpd-b7cf279d6da121d0bb0b274ab9581b697717b5a7.tar.gz
mpd-b7cf279d6da121d0bb0b274ab9581b697717b5a7.tar.xz
mpd-b7cf279d6da121d0bb0b274ab9581b697717b5a7.zip
zeroconf-avahi: eliminate "goto"
Diffstat (limited to '')
-rw-r--r--src/zeroconf-avahi.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/zeroconf-avahi.c b/src/zeroconf-avahi.c
index 1f93ddb72..d2c6c084c 100644
--- a/src/zeroconf-avahi.c
+++ b/src/zeroconf-avahi.c
@@ -234,13 +234,8 @@ void init_avahi(const char *serviceName)
if (!avahiClient) {
g_warning("Failed to create client: %s",
avahi_strerror(error));
- goto fail;
+ avahi_finish();
}
-
- return;
-
-fail:
- avahi_finish();
}
void avahi_finish(void)