summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--avahi-daemon/static-hosts.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/avahi-daemon/static-hosts.c b/avahi-daemon/static-hosts.c
index 23d5384..ae8961b 100644
--- a/avahi-daemon/static-hosts.c
+++ b/avahi-daemon/static-hosts.c
@@ -221,10 +221,6 @@ void static_hosts_load(int in_chroot) {
void static_hosts_free_all (void)
{
- StaticHost *h;
-
- for (h = hosts; h; h = hosts->hosts_next)
- {
- static_host_free (h);
- }
+ while(hosts)
+ static_host_free(hosts);
}