From 0f63c8af256fc5b7ba1c5e3ee1572d2e6f27a566 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Jul 2011 19:27:02 +0200 Subject: [PATCH] s/set_interface_down/interface_set_down/ --- interface.c | 8 ++++---- interface.h | 2 +- ubus.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/interface.c b/interface.c index 6223e05..2cbe9ec 100644 --- a/interface.c +++ b/interface.c @@ -119,7 +119,7 @@ __interface_set_up(struct interface *iface) } static void -__set_interface_down(struct interface *iface, bool force) +__interface_set_down(struct interface *iface, bool force) { clear_interface_errors(iface); @@ -161,7 +161,7 @@ interface_cb(struct device_user *dep, enum device_event ev) if (iface->autostart && !config_init) interface_set_up(iface); } else - __set_interface_down(iface, true); + __interface_set_down(iface, true); } static void @@ -312,10 +312,10 @@ interface_set_up(struct interface *iface) } int -set_interface_down(struct interface *iface) +interface_set_down(struct interface *iface) { iface->autostart = false; - __set_interface_down(iface, false); + __interface_set_down(iface, false); return 0; } diff --git a/interface.h b/interface.h index a5c7477..61189a1 100644 --- a/interface.h +++ b/interface.h @@ -66,7 +66,7 @@ void free_interface(struct interface *iface); void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state); int interface_set_up(struct interface *iface); -int set_interface_down(struct interface *iface); +int interface_set_down(struct interface *iface); int interface_add_link(struct interface *iface, struct device *llif); void interface_remove_link(struct interface *iface, struct device *llif); diff --git a/ubus.c b/ubus.c index 1239b1b..aa1378b 100644 --- a/ubus.c +++ b/ubus.c @@ -106,7 +106,7 @@ static int netifd_handle_down(struct ubus_context *ctx, struct ubus_object *obj, struct interface *iface; iface = container_of(obj, struct interface, ubus); - set_interface_down(iface); + interface_set_down(iface); return 0; } -- 2.25.1