diff options
author | Volker Lendecke <vl@samba.org> | 2014-11-08 09:00:31 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-10 06:09:04 +0100 |
commit | f5c17d41e085e083ef970692ff7f50f7a6642ea3 (patch) | |
tree | 3c8341ec9e3c769922b56e9682118964c0997c1d /lib/util/tevent_unix.c | |
parent | 5f68f7289c3028f50a449120cce000dcf40db788 (diff) | |
download | samba-f5c17d41e085e083ef970692ff7f50f7a6642ea3.tar.gz samba-f5c17d41e085e083ef970692ff7f50f7a6642ea3.tar.xz samba-f5c17d41e085e083ef970692ff7f50f7a6642ea3.zip |
lib: Add tevent_req_simple_recv_unix
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/util/tevent_unix.c')
-rw-r--r-- | lib/util/tevent_unix.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/util/tevent_unix.c b/lib/util/tevent_unix.c index e4c960e4d3..ee7ec8a6fe 100644 --- a/lib/util/tevent_unix.c +++ b/lib/util/tevent_unix.c @@ -48,3 +48,16 @@ bool tevent_req_is_unix_error(struct tevent_req *req, int *perrno) } return true; } + +int tevent_req_simple_recv_unix(struct tevent_req *req) +{ + int err = 0; + + /* + * Ignore result of tevent_req_is_unix_error, we're only interested in + * the status + */ + tevent_req_is_unix_error(req, &err); + tevent_req_received(req); + return err; +} |