diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-01-31 09:30:27 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-01-31 09:37:27 +0100 |
commit | 7cc2f10824fb0f7a519a30a77ed75439aab2b6ff (patch) | |
tree | 5262d152307189f275f55a768ab40db9966f8f32 /interface.c | |
parent | 650758b16e5185505a3fbc1307949340af70b611 (diff) |
treewide: fix white space errors
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/interface.c b/interface.c index a014111..522e7fe 100644 --- a/interface.c +++ b/interface.c @@ -94,11 +94,11 @@ interface_error_flush(struct interface *iface) static void interface_clear_errors(struct interface *iface) { - /* don't flush the errors in case the configured protocol handler matches the + /* don't flush the errors in case the configured protocol handler matches the running protocol handler and is having the last error capability */ if (!(iface->proto && - (iface->proto->handler->flags & PROTO_FLAG_LASTERROR) && - (iface->proto->handler->name == iface->proto_handler->name))) + (iface->proto->handler->flags & PROTO_FLAG_LASTERROR) && + (iface->proto->handler->name == iface->proto_handler->name))) interface_error_flush(iface); } @@ -110,12 +110,12 @@ void interface_add_error(struct interface *iface, const char *subsystem, int *datalen = NULL; char *dest, *d_subsys, *d_code; - /* if the configured protocol handler has the last error support capability, + /* if the configured protocol handler has the last error support capability, errors should only be added if the running protocol handler matches the configured one */ if (iface->proto && - (iface->proto->handler->flags & PROTO_FLAG_LASTERROR) && - (iface->proto->handler->name != iface->proto_handler->name)) + (iface->proto->handler->flags & PROTO_FLAG_LASTERROR) && + (iface->proto->handler->name != iface->proto_handler->name)) return; if (n_data) { |