From f62eea9492a669bcf96464e85f04ae5e80190a76 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 28 Mar 2011 21:54:19 +0200 Subject: restructure the proto state, add a callback for notifications by the protocol handler, move the iface pointer to the proto state --- interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'interface.c') 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); } -- cgit v1.2.3