diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-10-06 22:28:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:55 -0500 |
commit | 2151cde58014ea2e822c13d2f8a369b45dc19ca8 (patch) | |
tree | b0cd4c5b394e636232f417bcf482da87d1e18975 /source4/torture/smb2/notify.c | |
parent | 05e7c481465e3065effaf21b43636d6605d7c313 (diff) | |
download | samba-2151cde58014ea2e822c13d2f8a369b45dc19ca8.tar.gz samba-2151cde58014ea2e822c13d2f8a369b45dc19ca8.tar.bz2 samba-2151cde58014ea2e822c13d2f8a369b45dc19ca8.zip |
r25554: Convert last instances of BOOL, True and False to the standard types.
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
Diffstat (limited to 'source4/torture/smb2/notify.c')
-rw-r--r-- | source4/torture/smb2/notify.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index 505b316d8e..cabe81ca71 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -33,7 +33,7 @@ if (!NT_STATUS_EQUAL(status, correct)) { \ printf("(%s) Incorrect status %s - should be %s\n", \ __location__, nt_errstr(status), nt_errstr(correct)); \ - ret = False; \ + ret = false; \ goto done; \ }} while (0) @@ -41,7 +41,7 @@ if ((v) != (correct)) { \ printf("(%s) Incorrect value %s=%d - should be %d\n", \ __location__, #v, v, correct); \ - ret = False; \ + ret = false; \ goto done; \ }} while (0) @@ -49,15 +49,15 @@ if (!field.s || strcmp(field.s, value)) { \ printf("(%s) %s [%s] != %s\n", \ __location__, #field, field.s, value); \ - ret = False; \ + ret = false; \ goto done; \ }} while (0) #define FNAME "smb2-notify01.dat" -static BOOL test_valid_request(TALLOC_CTX *mem_ctx, struct smb2_tree *tree) +static bool test_valid_request(TALLOC_CTX *mem_ctx, struct smb2_tree *tree) { - BOOL ret = True; + bool ret = true; NTSTATUS status; struct smb2_handle dh; struct smb2_notify n; @@ -188,14 +188,14 @@ done: /* basic testing of SMB2 notify */ -BOOL torture_smb2_notify(struct torture_context *torture) +bool torture_smb2_notify(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 &= test_valid_request(mem_ctx, tree); |