summaryrefslogtreecommitdiff
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
parentf5c17d41e085e083ef970692ff7f50f7a6642ea3 (diff)
downloadsamba-6bc62af42ea5cc2eba90c73fb73188b57a59a347.tar.gz
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>
-rw-r--r--source3/lib/ctdb_conn.c6
-rw-r--r--source3/lib/tevent_barrier.c7
-rw-r--r--source3/lib/tevent_wait.c7
-rw-r--r--source3/smbd/notify_internal.c7
4 files changed, 4 insertions, 23 deletions
diff --git a/source3/lib/ctdb_conn.c b/source3/lib/ctdb_conn.c
index c705c211c3c..a54e83dbb6b 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 d699b5fda9a..318c8961f01 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 ec7c8cbf50f..81fb2132519 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);
}
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index 4e9862ac65e..9d548911528 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/smbd/notify_internal.c
@@ -1251,10 +1251,5 @@ static void notify_cluster_proxy_trigger(struct notify_context *notify,
int notify_cluster_proxy_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);
}