From cefa698c725c883c418b915b057e4ef023610a1d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 4 Sep 2001 11:52:42 +0000 Subject: fixed compilation of torture (This used to be commit aaf538a83057150cc35e9032aff7a78e8f0c4dc2) --- source3/torture/torture.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/torture/torture.c') 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; -- cgit