From d87fd395012b8e94f6456e046e0c05474ca750da Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 28 Apr 2015 14:00:06 +0000 Subject: Use tevent_req_poll_ntstatus Kill 41 lines .. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/libsmb/clilist.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3/libsmb/clilist.c') 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; } -- cgit v1.2.1