summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorMatt Kraai <mkraai@beckman.com>2010-01-05 09:42:54 -0800
committerStefan Metzmacher <metze@samba.org>2010-02-02 07:18:18 +0100
commitd8071e7ed7c57e8b0f2d80420e27f9ea7ab63022 (patch)
tree9ee0823d8f3e43217989f15c442ab747e84d22c2 /source4/torture/smb2
parenta47b6ebb3036f5073fdb2320b584345d3604c38d (diff)
downloadsamba-d8071e7ed7c57e8b0f2d80420e27f9ea7ab63022.tar.gz
samba-d8071e7ed7c57e8b0f2d80420e27f9ea7ab63022.tar.bz2
samba-d8071e7ed7c57e8b0f2d80420e27f9ea7ab63022.zip
Change uint_t to unsigned int in source4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r--source4/torture/smb2/dir.c14
-rw-r--r--source4/torture/smb2/setinfo.c6
2 files changed, 10 insertions, 10 deletions
diff --git a/source4/torture/smb2/dir.c b/source4/torture/smb2/dir.c
index 4af6900a81..8c3cb76336 100644
--- a/source4/torture/smb2/dir.c
+++ b/source4/torture/smb2/dir.c
@@ -108,7 +108,7 @@ static bool test_find(struct torture_context *tctx,
struct file_elem files[NFILES] = {};
NTSTATUS status;
bool ret = true;
- uint_t count;
+ unsigned int count;
int i, j, file_count = 0;
status = populate_tree(tctx, mem_ctx, tree, files, NFILES, &h);
@@ -193,7 +193,7 @@ static bool test_fixed(struct torture_context *tctx,
struct file_elem files[NFILES] = {};
NTSTATUS status;
bool ret = true;
- uint_t count;
+ unsigned int count;
int i;
status = populate_tree(tctx, mem_ctx, tree, files, NFILES, &h);
@@ -360,7 +360,7 @@ static union smb_search_data *find(const char *name)
static bool fill_level_data(TALLOC_CTX *mem_ctx,
union smb_search_data *data,
union smb_search_data *d,
- uint_t count,
+ unsigned int count,
uint8_t level,
enum smb_search_data_level data_level)
{
@@ -385,7 +385,7 @@ NTSTATUS torture_single_file_search(struct smb2_tree *tree,
enum smb_search_data_level data_level,
int idx,
union smb_search_data *d,
- uint_t *count,
+ unsigned int *count,
struct smb2_handle *h)
{
struct smb2_find f;
@@ -416,7 +416,7 @@ static bool test_one_file(struct torture_context *tctx,
const char *fname = "torture_search.txt";
NTSTATUS status;
int i;
- uint_t count;
+ unsigned int count;
union smb_fileinfo all_info2, alt_info, internal_info;
union smb_search_data *s;
union smb_search_data d;
@@ -671,7 +671,7 @@ static NTSTATUS multiple_smb2_search(struct smb2_tree *tree,
{
struct smb2_find f;
bool ret = true;
- uint_t count = 0;
+ unsigned int count = 0;
union smb_search_data *d;
NTSTATUS status;
struct multiple_result *result = (struct multiple_result *)data;
@@ -895,7 +895,7 @@ static bool test_modify_search(struct torture_context *tctx,
NTSTATUS status;
bool ret = true;
int i;
- uint_t count;
+ unsigned int count;
smb2_deltree(tree, DNAME);
diff --git a/source4/torture/smb2/setinfo.c b/source4/torture/smb2/setinfo.c
index 38642a673d..04b64fd632 100644
--- a/source4/torture/smb2/setinfo.c
+++ b/source4/torture/smb2/setinfo.c
@@ -117,7 +117,7 @@ bool torture_smb2_setinfo(struct torture_context *tctx)
if (NT_STATUS_IS_OK(status) && NT_STATUS_IS_OK(status2) && finfo2.stype.out.field != value) { \
torture_result(tctx, TORTURE_FAIL, "(%s) %s - %s/%s should be 0x%x - 0x%x\n", __location__, \
call_name, #stype, #field, \
- (uint_t)value, (uint_t)finfo2.stype.out.field); \
+ (unsigned int)value, (unsigned int)finfo2.stype.out.field); \
torture_smb2_all_info(tree, handle); \
ret = false; \
goto done; \
@@ -128,8 +128,8 @@ bool torture_smb2_setinfo(struct torture_context *tctx)
if (NT_STATUS_IS_OK(status) && NT_STATUS_IS_OK(status2) && nt_time_to_unix(finfo2.stype.out.field) != value) { \
torture_result(tctx, TORTURE_FAIL, "(%s) %s - %s/%s should be 0x%x - 0x%x\n", __location__, \
call_name, #stype, #field, \
- (uint_t)value, \
- (uint_t)nt_time_to_unix(finfo2.stype.out.field)); \
+ (unsigned int)value, \
+ (unsigned int)nt_time_to_unix(finfo2.stype.out.field)); \
torture_warning(tctx, "\t%s", timestring(tctx, value)); \
torture_warning(tctx, "\t%s\n", nt_time_string(tctx, finfo2.stype.out.field)); \
torture_smb2_all_info(tree, handle); \