diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-08-20 13:53:17 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-08-20 14:12:27 +0200 |
commit | b9d5a8c37da02ccac5821b7599f4c9cd4461a662 (patch) | |
tree | 86ea64f7db456131aebdfe3cd7f2f9ee4ff84593 /interface.h | |
parent | de394b30b895acc7b4cd4d5ddc78e4710747e613 (diff) |
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 <interface>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface.h')
-rw-r--r-- | interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |