From 8d60ce8fad81a0951e9d7efe9e57d0b4b331095e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Jul 2011 19:26:57 +0200 Subject: [PATCH] s/set_interface_up/interface_set_up/ --- interface.c | 10 +++++----- interface.h | 2 +- ubus.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/interface.c b/interface.c index a1e3004..6223e05 100644 --- a/interface.c +++ b/interface.c @@ -96,7 +96,7 @@ mark_interface_down(struct interface *iface) } static int -__set_interface_up(struct interface *iface) +__interface_set_up(struct interface *iface) { int ret; @@ -159,7 +159,7 @@ interface_cb(struct device_user *dep, enum device_event ev) if (new_state) { if (iface->autostart && !config_init) - set_interface_up(iface); + interface_set_up(iface); } else __set_interface_down(iface, true); } @@ -296,7 +296,7 @@ interface_add_link(struct interface *iface, struct device *dev) } int -set_interface_up(struct interface *iface) +interface_set_up(struct interface *iface) { iface->autostart = true; @@ -308,7 +308,7 @@ set_interface_up(struct interface *iface) if (iface->state != IFS_DOWN) return 0; - return __set_interface_up(iface); + return __interface_set_up(iface); } int @@ -327,6 +327,6 @@ start_pending_interfaces(void) list_for_each_entry(iface, &interfaces, list) { if (iface->active && iface->autostart) - set_interface_up(iface); + interface_set_up(iface); } } diff --git a/interface.h b/interface.h index d30bd36..a5c7477 100644 --- a/interface.h +++ b/interface.h @@ -65,7 +65,7 @@ void free_interface(struct interface *iface); void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state); -int set_interface_up(struct interface *iface); +int interface_set_up(struct interface *iface); int set_interface_down(struct interface *iface); int interface_add_link(struct interface *iface, struct device *llif); diff --git a/ubus.c b/ubus.c index fc58376..1239b1b 100644 --- a/ubus.c +++ b/ubus.c @@ -94,7 +94,7 @@ static int netifd_handle_up(struct ubus_context *ctx, struct ubus_object *obj, struct interface *iface; iface = container_of(obj, struct interface, ubus); - set_interface_up(iface); + interface_set_up(iface); return 0; } -- 2.25.1