summaryrefslogtreecommitdiff
path: root/source3/torture/torture.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-04 11:52:42 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-04 11:52:42 +0000
commitcefa698c725c883c418b915b057e4ef023610a1d (patch)
tree141469486a32759f8eb6c396f76d1123f7dbc5e0 /source3/torture/torture.c
parented3fbafdd34af0f22c0f90c93718e887bae23dec (diff)
downloadsamba-cefa698c725c883c418b915b057e4ef023610a1d.tar.gz
samba-cefa698c725c883c418b915b057e4ef023610a1d.tar.bz2
samba-cefa698c725c883c418b915b057e4ef023610a1d.zip
fixed compilation of torture
(This used to be commit aaf538a83057150cc35e9032aff7a78e8f0c4dc2)
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r--source3/torture/torture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index e92049d8f3..2e19ec042a 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -169,7 +169,7 @@ BOOL torture_close_connection(struct cli_state *c)
/* check if the server produced the expected error code */
static BOOL check_error(int line, struct cli_state *c,
- uint8 eclass, uint32 ecode, uint32 nterr)
+ uint8 eclass, uint32 ecode, NTSTATUS nterr)
{
if (cli_is_dos_error(c)) {
uint8 class;
@@ -182,8 +182,8 @@ static BOOL check_error(int line, struct cli_state *c,
if (eclass != class || ecode != num) {
printf("unexpected error code class=%d code=%d\n",
(int)class, (int)num);
- printf(" expected %d/%d %d (line=%d)\n",
- (int)eclass, (int)ecode, (int)nterr, line);
+ printf(" expected %d/%d %s (line=%d)\n",
+ (int)eclass, (int)ecode, get_nt_error_msg(nterr), line);
return False;
}
@@ -194,7 +194,7 @@ static BOOL check_error(int line, struct cli_state *c,
status = cli_nt_error(c);
- if (nterr != status) {
+ if (NT_STATUS_V(nterr) != NT_STATUS_V(status)) {
printf("unexpected error code %s\n", get_nt_error_msg(status));
printf(" expected %s (line=%d)\n", get_nt_error_msg(nterr), line);
return False;