Commit 341c2d30 authored by Federico Vaga's avatar Federico Vaga

wrtd:lib: ignore timeout "we don't have them"

Patch 'lib: sync function return remaining time to timeout'
change a bit the API, now the sync function return the
remaining timeout. The WRTD library was not thought with this
in mind. To preserve the previous behavior we ignore the
timeout "error".
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>


NOTE
This commit has been created by `git subtree` on the Mock Turtle repository
on tag mock-turtle-2.0

This commit will not compile
parent 192f8c43
......@@ -33,7 +33,7 @@ static inline int wrtd_in_send_and_receive_sync(struct wrtd_desc *wrtd,
WRTD_DEFAULT_TIMEOUT);
wrnc_hmq_close(hmq);
return err;
return err < 0 ? err : 0; /* Ignore timeout */
}
......
......@@ -32,7 +32,7 @@ static inline int wrtd_out_send_and_receive_sync(struct wrtd_desc *wrtd,
wrnc_hmq_close(hmq);
return err;
return err < 0 ? err : 0; /* Ignore timeout */
}
static int wrtd_out_trivial_request (struct wrtd_node *dev, struct wrnc_msg *request_msg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment