diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-10-08 14:22:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:59 -0500 |
commit | dae6a2453250b01079d2064bcb0cac48a2e5d1e5 (patch) | |
tree | 459bd85f6115a4b5d4f2804c82499e259d9061ca /source4/torture/smb2 | |
parent | b0ef52e959265932c848a888453937162e3414ef (diff) | |
download | samba-dae6a2453250b01079d2064bcb0cac48a2e5d1e5.tar.gz samba-dae6a2453250b01079d2064bcb0cac48a2e5d1e5.tar.bz2 samba-dae6a2453250b01079d2064bcb0cac48a2e5d1e5.zip |
r25579: BOOL -> bool
metze
(This used to be commit 058a0619e9218586e73ae920f45621cf00d8b828)
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r-- | source4/torture/smb2/dir.c | 12 | ||||
-rw-r--r-- | source4/torture/smb2/maxwrite.c | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/source4/torture/smb2/dir.c b/source4/torture/smb2/dir.c index 428683522a..eb24dd0884 100644 --- a/source4/torture/smb2/dir.c +++ b/source4/torture/smb2/dir.c @@ -29,19 +29,19 @@ /* test find continue */ -static BOOL torture_smb2_find_dir(struct smb2_tree *tree) +static bool torture_smb2_find_dir(struct smb2_tree *tree) { struct smb2_handle handle; NTSTATUS status; int i; struct smb2_find f; - BOOL ret = True; + bool ret = true; union smb_search_data *d; uint_t count; status = smb2_util_roothandle(tree, &handle); if (!NT_STATUS_IS_OK(status)) { - return False; + return false; } ZERO_STRUCT(f); @@ -75,14 +75,14 @@ static BOOL torture_smb2_find_dir(struct smb2_tree *tree) /* basic testing of directory listing with continue */ -BOOL torture_smb2_dir(struct torture_context *torture) +bool torture_smb2_dir(struct torture_context *torture) { TALLOC_CTX *mem_ctx = talloc_new(NULL); struct smb2_tree *tree; - BOOL ret = True; + bool ret = true; if (!torture_smb2_connection(mem_ctx, &tree)) { - return False; + return false; } ret &= torture_smb2_find_dir(tree); diff --git a/source4/torture/smb2/maxwrite.c b/source4/torture/smb2/maxwrite.c index d4a77ad3ca..588a49221e 100644 --- a/source4/torture/smb2/maxwrite.c +++ b/source4/torture/smb2/maxwrite.c @@ -111,7 +111,7 @@ static NTSTATUS torture_smb2_write(TALLOC_CTX *mem_ctx, /* basic testing of SMB2 connection calls */ -BOOL torture_smb2_maxwrite(struct torture_context *torture) +bool torture_smb2_maxwrite(struct torture_context *torture) { TALLOC_CTX *mem_ctx = talloc_new(NULL); struct smb2_tree *tree; @@ -119,17 +119,17 @@ BOOL torture_smb2_maxwrite(struct torture_context *torture) NTSTATUS status; if (!torture_smb2_connection(mem_ctx, &tree)) { - return False; + return false; } h1 = torture_smb2_create(tree, FNAME); status = torture_smb2_write(mem_ctx, tree, h1); if (!NT_STATUS_IS_OK(status)) { printf("Write failed - %s\n", nt_errstr(status)); - return False; + return false; } talloc_free(mem_ctx); - return True; + return true; } |