summaryrefslogtreecommitdiffstats
path: root/source/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-27 19:46:22 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-27 19:46:22 +0000
commit1d36250e338ae0ff9fbbf86019809205dd97d05e (patch)
treee9698f0341f3d5189f45dfd8773b38e57b4da599 /source/torture
parent8021669b167053b5500f035c9c50d1327d73c232 (diff)
downloadsamba-1d36250e338ae0ff9fbbf86019809205dd97d05e.tar.gz
samba-1d36250e338ae0ff9fbbf86019809205dd97d05e.tar.xz
samba-1d36250e338ae0ff9fbbf86019809205dd97d05e.zip
converted another bunch of stuff to NTSTATUS
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/scanner.c12
-rw-r--r--source/torture/torture.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/source/torture/scanner.c b/source/torture/scanner.c
index 5c1c59ca8c3..19505d257d1 100644
--- a/source/torture/scanner.c
+++ b/source/torture/scanner.c
@@ -30,7 +30,7 @@
/****************************************************************************
look for a partial hit
****************************************************************************/
-static void trans2_check_hit(char *format, int op, int level, uint32 status)
+static void trans2_check_hit(char *format, int op, int level, NTSTATUS status)
{
switch (status) {
case NT_STATUS_INVALID_LEVEL:
@@ -103,7 +103,7 @@ static uint32 try_trans2_len(struct cli_state *cli,
if (ret == 0) break;
*data_len += 2;
}
- if (ret == NT_STATUS_NOPROBLEMO) {
+ if (ret == NT_STATUS_OK) {
printf("found %s level=%d data_len=%d rparam_len=%d rdata_len=%d\n",
format, level, *data_len, *rparam_len, *rdata_len);
} else {
@@ -122,7 +122,7 @@ static BOOL scan_trans2(struct cli_state *cli, int op, int level,
int param_len = 0;
int rparam_len, rdata_len;
pstring param, data;
- uint32 status;
+ NTSTATUS status;
memset(data, 0, sizeof(data));
data_len = 4;
@@ -236,7 +236,7 @@ BOOL torture_trans2_scan(int dummy)
/****************************************************************************
look for a partial hit
****************************************************************************/
-static void nttrans_check_hit(char *format, int op, int level, uint32 status)
+static void nttrans_check_hit(char *format, int op, int level, NTSTATUS status)
{
switch (status) {
case NT_STATUS_INVALID_LEVEL:
@@ -307,7 +307,7 @@ static uint32 try_nttrans_len(struct cli_state *cli,
if (ret == 0) break;
*data_len += 2;
}
- if (ret == NT_STATUS_NOPROBLEMO) {
+ if (ret == NT_STATUS_OK) {
printf("found %s level=%d data_len=%d rparam_len=%d rdata_len=%d\n",
format, level, *data_len, *rparam_len, *rdata_len);
} else {
@@ -326,7 +326,7 @@ static BOOL scan_nttrans(struct cli_state *cli, int op, int level,
int param_len = 0;
int rparam_len, rdata_len;
pstring param, data;
- uint32 status;
+ NTSTATUS status;
memset(data, 0, sizeof(data));
data_len = 4;
diff --git a/source/torture/torture.c b/source/torture/torture.c
index 36d88d518a6..e92049d8f3b 100644
--- a/source/torture/torture.c
+++ b/source/torture/torture.c
@@ -188,7 +188,7 @@ static BOOL check_error(int line, struct cli_state *c,
}
} else {
- uint32 status;
+ NTSTATUS status;
/* Check NT error */