From b9d5a8c37da02ccac5821b7599f4c9cd4461a662 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Mon, 20 Aug 2018 13:53:17 +0200 Subject: interface: extend interface error messages in interface_set_up() Don't return an error code in interface_set_up as it's ignored anyway by the calling functions; but rather add more interface error messages so the actual problem is visible for the user by doing ifstatus Signed-off-by: Hans Dedecker --- interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interface.h') diff --git a/interface.h b/interface.h index e5639eb..2b8b3b6 100644 --- a/interface.h +++ b/interface.h @@ -184,7 +184,7 @@ bool interface_add_alias(struct interface *iface, struct blob_attr *config); void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state); void interface_set_available(struct interface *iface, bool new_state); -int interface_set_up(struct interface *iface); +void interface_set_up(struct interface *iface); int interface_set_down(struct interface *iface); void __interface_set_down(struct interface *iface, bool force); int interface_renew(struct interface *iface); -- cgit v1.2.1