summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-28 21:54:19 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-03-28 21:55:40 +0200
commitf62eea9492a669bcf96464e85f04ae5e80190a76 (patch)
tree59eebbcc6902f2930b64828a96541e0db3f450b4 /interface.c
parent7fff5dae53f1cdc9d9d5b181fc51ee9e26aa3256 (diff)
restructure the proto state, add a callback for notifications by the protocol handler, move the iface pointer to the proto state
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface.c b/interface.c
index 7bf0ed4..0aa0b0d 100644
--- a/interface.c
+++ b/interface.c
@@ -58,7 +58,7 @@ interface_event(struct interface *iface, enum interface_event ev)
if (!iface->state || !iface->state->event)
return 0;
- return iface->state->event(iface, iface->state, ev);
+ return iface->state->event(iface->state, ev);
}
static void
@@ -148,7 +148,7 @@ free_interface(struct interface *iface)
netifd_ubus_remove_interface(iface);
list_del(&iface->list);
if (iface->state && iface->state->free)
- iface->state->free(iface, iface->state);
+ iface->state->free(iface->state);
free(iface);
}