]> git.meshlink.io Git - catta/commitdiff
* fix a bug
authorSebastien Estienne <sebastien.estienne@gmail.com>
Tue, 18 Oct 2005 23:23:47 +0000 (23:23 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Tue, 18 Oct 2005 23:23:47 +0000 (23:23 +0000)
 * 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
avahi-core/iface-pfroute.h

index 17b80d4bf9b7a3afa86e1e023c560d28f0f67695..56149dae83ee7ff2e0f96bd4c0494278fa95f0f7 100644 (file)
@@ -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);
index e46df5f638dd948646fb0e38a075e24a6e38e6e0..34098da492d4351ae56ed52900ab246521697cb2 100644 (file)
@@ -26,7 +26,6 @@
 typedef struct AvahiPfRoute AvahiPfRoute;
 struct AvahiPfRoute {
   int fd;
-  const AvahiPoll *poll_api;
   AvahiWatch *watch;
   AvahiInterfaceMonitor *m;
 };