s/set_interface_down/interface_set_down/
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jul 2011 17:27:02 +0000 (19:27 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jul 2011 17:27:02 +0000 (19:27 +0200)
interface.c
interface.h
ubus.c

index 6223e05..2cbe9ec 100644 (file)
@@ -119,7 +119,7 @@ __interface_set_up(struct interface *iface)
 }
 
 static void
 }
 
 static void
-__set_interface_down(struct interface *iface, bool force)
+__interface_set_down(struct interface *iface, bool force)
 {
        clear_interface_errors(iface);
 
 {
        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
                if (iface->autostart && !config_init)
                        interface_set_up(iface);
        } else
-               __set_interface_down(iface, true);
+               __interface_set_down(iface, true);
 }
 
 static void
 }
 
 static void
@@ -312,10 +312,10 @@ interface_set_up(struct interface *iface)
 }
 
 int
 }
 
 int
-set_interface_down(struct interface *iface)
+interface_set_down(struct interface *iface)
 {
        iface->autostart = false;
 {
        iface->autostart = false;
-       __set_interface_down(iface, false);
+       __interface_set_down(iface, false);
 
        return 0;
 }
 
        return 0;
 }
index a5c7477..61189a1 100644 (file)
@@ -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);
 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);
 
 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 (file)
--- 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);
        struct interface *iface;
 
        iface = container_of(obj, struct interface, ubus);
-       set_interface_down(iface);
+       interface_set_down(iface);
 
        return 0;
 }
 
        return 0;
 }