diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-27 09:08:17 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-25 07:25:46 +0100 |
commit | d6ce6189d20d0615cd861e1cb116e18a085dfc6b (patch) | |
tree | 6476267e35d6ef3ea459b7fded2571d880b9525c /source4/torture/locktest.c | |
parent | 4a0c2605ac5c28e8d0ee469b897df746d55e26f4 (diff) | |
download | samba-d6ce6189d20d0615cd861e1cb116e18a085dfc6b.tar.gz |
s4:torture/locktest: comment out unused code and avoid smbcli_nt_error()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/torture/locktest.c')
-rw-r--r-- | source4/torture/locktest.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c index 0d2608f7c3b..ac8d854a358 100644 --- a/source4/torture/locktest.c +++ b/source4/torture/locktest.c @@ -221,7 +221,7 @@ static bool test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS], uint64_t len = rec->len; enum brl_type op = rec->lock_type; int server; - bool ret[NSERVERS]; + /* bool ret[NSERVERS]; */ NTSTATUS status[NSERVERS]; switch (rec->lock_op) { @@ -256,8 +256,8 @@ static bool test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS], res = smb_raw_lock(tree, &parms); } - ret[server] = NT_STATUS_IS_OK(res); - status[server] = smbcli_nt_error(cli[server][conn]->tree); + /* ret[server] = NT_STATUS_IS_OK(res); */ + status[server] = res; if (!exact_error_codes && NT_STATUS_EQUAL(status[server], NT_STATUS_FILE_LOCK_CONFLICT)) { @@ -302,8 +302,8 @@ static bool test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS], res = smb_raw_lock(tree, &parms); } - ret[server] = NT_STATUS_IS_OK(res); - status[server] = smbcli_nt_error(cli[server][conn]->tree); + /* ret[server] = NT_STATUS_IS_OK(res); */ + status[server] = res; } if (showall || (!hide_unlock_fails && !NT_STATUS_EQUAL(status[0],status[1]))) { |