summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-02-04 09:07:36 +0100
committerKai Blin <kai@samba.org>2009-02-09 08:36:08 +0100
commitc3b9b6c8aae1dea8df5fc7bff873a015aaa92d6e (patch)
tree34feeb6f13f8b5b058b9df92a9cb2e2ec8e51050 /source3/torture
parent3a4c8cd492b9e8874724dff1d0fc0207cb74036b (diff)
downloadsamba-c3b9b6c8aae1dea8df5fc7bff873a015aaa92d6e.tar.gz
samba-c3b9b6c8aae1dea8df5fc7bff873a015aaa92d6e.tar.bz2
samba-c3b9b6c8aae1dea8df5fc7bff873a015aaa92d6e.zip
async_sock: Use unix errnos instead of NTSTATUS
This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would be pointless to convert to errno first and to wbcErr later.
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 1210a36a39..9cf41d88c7 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "wbc_async.h"
extern char *optarg;
extern int optind;
@@ -5497,14 +5498,14 @@ static bool run_local_memcache(int dummy)
static void wbclient_done(struct async_req *req)
{
- NTSTATUS status;
+ wbcErr wbc_err;
struct winbindd_response *wb_resp;
int *i = (int *)req->async.priv;
- status = wb_trans_recv(req, req, &wb_resp);
+ wbc_err = wb_trans_recv(req, req, &wb_resp);
TALLOC_FREE(req);
*i += 1;
- d_printf("wb_trans_recv %d returned %s\n", *i, nt_errstr(status));
+ d_printf("wb_trans_recv %d returned %s\n", *i, wbcErrorString(wbc_err));
}
static bool run_local_wbclient(int dummy)