From d266407d3e6d8f2a8e14e8bd2f89fa8a4333613c Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Tue, 18 Oct 2005 23:23:47 +0000 Subject: [PATCH] * fix a bug * replace m->osdep.pfroute->poll_api by m->server->poll_api git-svn-id: file:///home/lennart/svn/public/avahi/trunk@818 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/iface-pfroute.c | 4 ++-- avahi-core/iface-pfroute.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/avahi-core/iface-pfroute.c b/avahi-core/iface-pfroute.c index 17b80d4..56149da 100644 --- a/avahi-core/iface-pfroute.c +++ b/avahi-core/iface-pfroute.c @@ -265,7 +265,7 @@ fail: if (m->osdep.pfroute) { if (m->osdep.pfroute->watch) - m->osdep.pfroute->poll_api->watch_free(m->osdep.pfroute->watch); + m->server->poll_api->watch_free(m->osdep.pfroute->watch); if (fd >= 0) close(fd); @@ -281,7 +281,7 @@ void avahi_interface_monitor_free_osdep(AvahiInterfaceMonitor *m) { if (m->osdep.pfroute) { if (m->osdep.pfroute->watch) - m->osdep.pfroute->poll_api->watch_free(m->osdep.pfroute->watch); + m->server->poll_api->watch_free(m->osdep.pfroute->watch); if (m->osdep.pfroute->fd >= 0) close(m->osdep.pfroute->fd); diff --git a/avahi-core/iface-pfroute.h b/avahi-core/iface-pfroute.h index e46df5f..34098da 100644 --- a/avahi-core/iface-pfroute.h +++ b/avahi-core/iface-pfroute.h @@ -26,7 +26,6 @@ typedef struct AvahiPfRoute AvahiPfRoute; struct AvahiPfRoute { int fd; - const AvahiPoll *poll_api; AvahiWatch *watch; AvahiInterfaceMonitor *m; }; -- 2.39.5