summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-08-20 14:28:00 +0200
committerHans Dedecker <dedeckeh@gmail.com>2018-08-20 14:51:59 +0200
commit7454d121090f60428777c01f431031059acc96eb (patch)
treea3e642f96b1ed1b2a04f9f4328e4eb25ca49b78f /interface.c
parent32f11a80c31c3886aaee4c5e3a8e0d1cfb49b0f2 (diff)
interface: let interface_set_down() return void
Let interface_set_down() return void as no usefull error code is returned by __interface_set_down() Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/interface.c b/interface.c
index 6fa51fa..b508b10 100644
--- a/interface.c
+++ b/interface.c
@@ -1078,7 +1078,7 @@ interface_set_up(struct interface *iface)
interface_add_error(iface, "interface", error, NULL, 0);
}
-int
+void
interface_set_down(struct interface *iface)
{
if (!iface) {
@@ -1088,8 +1088,6 @@ interface_set_down(struct interface *iface)
iface->autostart = false;
__interface_set_down(iface, false);
}
-
- return 0;
}
int