summaryrefslogtreecommitdiffstats
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-11-08 09:05:23 +0000
committerJeremy Allison <jra@samba.org>2014-11-10 06:09:04 +0100
commit6bc62af42ea5cc2eba90c73fb73188b57a59a347 (patch)
treee82eaef47f28ef6b794d219e81cebf7bde3aa182 /source3/lib
parentf5c17d41e085e083ef970692ff7f50f7a6642ea3 (diff)
downloadsamba-6bc62af42ea5cc2eba90c73fb73188b57a59a347.tar.gz
samba-6bc62af42ea5cc2eba90c73fb73188b57a59a347.tar.xz
samba-6bc62af42ea5cc2eba90c73fb73188b57a59a347.zip
Use tevent_req_simple_recv_unix in a few places
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ctdb_conn.c6
-rw-r--r--source3/lib/tevent_barrier.c7
-rw-r--r--source3/lib/tevent_wait.c7
3 files changed, 3 insertions, 17 deletions
diff --git a/source3/lib/ctdb_conn.c b/source3/lib/ctdb_conn.c
index c705c211c3..a54e83dbb6 100644
--- a/source3/lib/ctdb_conn.c
+++ b/source3/lib/ctdb_conn.c
@@ -347,11 +347,7 @@ static void ctdb_conn_msg_write_done(struct tevent_req *subreq)
int ctdb_conn_msg_write_recv(struct tevent_req *req)
{
- int err;
- if (tevent_req_is_unix_error(req, &err)) {
- return err;
- }
- return 0;
+ return tevent_req_simple_recv_unix(req);
}
struct ctdb_msg_channel {
diff --git a/source3/lib/tevent_barrier.c b/source3/lib/tevent_barrier.c
index d699b5fda9..318c8961f0 100644
--- a/source3/lib/tevent_barrier.c
+++ b/source3/lib/tevent_barrier.c
@@ -188,10 +188,5 @@ static void tevent_barrier_release_trigger(struct tevent_context *ctx,
int tevent_barrier_wait_recv(struct tevent_req *req)
{
- int err;
-
- if (tevent_req_is_unix_error(req, &err)) {
- return err;
- }
- return 0;
+ return tevent_req_simple_recv_unix(req);
}
diff --git a/source3/lib/tevent_wait.c b/source3/lib/tevent_wait.c
index ec7c8cbf50..81fb213251 100644
--- a/source3/lib/tevent_wait.c
+++ b/source3/lib/tevent_wait.c
@@ -74,10 +74,5 @@ static void tevent_wait_trigger(struct tevent_context *ctx,
int tevent_wait_recv(struct tevent_req *req)
{
- int err;
-
- if (tevent_req_is_unix_error(req, &err)) {
- return err;
- }
- return 0;
+ return tevent_req_simple_recv_unix(req);
}