summaryrefslogtreecommitdiff
path: root/source3/libsmb/clilist.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-04-28 14:00:06 +0000
committerJeremy Allison <jra@samba.org>2015-05-18 02:34:24 +0200
commitd87fd395012b8e94f6456e046e0c05474ca750da (patch)
treea0c20b162830ded57b0a964ee2d3949f4f46bc09 /source3/libsmb/clilist.c
parent12df833563034573f62d61c69b4abf38b95d1a18 (diff)
downloadsamba-d87fd395012b8e94f6456e046e0c05474ca750da.tar.gz
Use tevent_req_poll_ntstatus
Kill 41 lines .. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb/clilist.c')
-rw-r--r--source3/libsmb/clilist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c
index 2e5023916e7..94bbc573376 100644
--- a/source3/libsmb/clilist.c
+++ b/source3/libsmb/clilist.c
@@ -505,8 +505,7 @@ NTSTATUS cli_list_old(struct cli_state *cli, const char *mask,
if (req == NULL) {
goto fail;
}
- if (!tevent_req_poll(req, ev)) {
- status = map_nt_error_from_unix(errno);
+ if (!tevent_req_poll_ntstatus(req, ev, &status)) {
goto fail;
}
status = cli_list_old_recv(req, frame, &finfo);
@@ -966,8 +965,7 @@ NTSTATUS cli_list(struct cli_state *cli, const char *mask, uint16_t attribute,
if (req == NULL) {
goto fail;
}
- if (!tevent_req_poll(req, ev)) {
- status = map_nt_error_from_unix(errno);
+ if (!tevent_req_poll_ntstatus(req, ev, &status)) {
goto fail;
}