From dae6a2453250b01079d2064bcb0cac48a2e5d1e5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 8 Oct 2007 14:22:10 +0000 Subject: r25579: BOOL -> bool metze (This used to be commit 058a0619e9218586e73ae920f45621cf00d8b828) --- source4/torture/locktest2.c | 48 ++++++++++++++++++++--------------------- source4/torture/nbt/browse.c | 4 ++-- source4/torture/smb2/dir.c | 12 +++++------ source4/torture/smb2/maxwrite.c | 8 +++---- 4 files changed, 36 insertions(+), 36 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/locktest2.c b/source4/torture/locktest2.c index 970873a3a6..55edd4aa17 100644 --- a/source4/torture/locktest2.c +++ b/source4/torture/locktest2.c @@ -24,10 +24,10 @@ static fstring password; static fstring username; static int got_pass; static int numops = 1000; -static BOOL showall; -static BOOL analyze; -static BOOL hide_unlock_fails; -static BOOL use_oplocks; +static bool showall; +static bool analyze; +static bool hide_unlock_fails; +static bool use_oplocks; #define FILENAME "\\locktest.dat" #define LOCKRANGE 100 @@ -77,7 +77,7 @@ static int try_open(struct smbcli_state *c, char *nfs, int fstype, const char *f return -1; } -static BOOL try_close(struct smbcli_state *c, int fstype, int fd) +static bool try_close(struct smbcli_state *c, int fstype, int fd) { switch (fstype) { case FSTYPE_SMB: @@ -87,10 +87,10 @@ static BOOL try_close(struct smbcli_state *c, int fstype, int fd) return close(fd) == 0; } - return False; + return false; } -static BOOL try_lock(struct smbcli_state *c, int fstype, +static bool try_lock(struct smbcli_state *c, int fstype, int fd, uint_t start, uint_t len, enum brl_type op) { @@ -109,10 +109,10 @@ static BOOL try_lock(struct smbcli_state *c, int fstype, return fcntl(fd,F_SETLK,&lock) == 0; } - return False; + return false; } -static BOOL try_unlock(struct smbcli_state *c, int fstype, +static bool try_unlock(struct smbcli_state *c, int fstype, int fd, uint_t start, uint_t len) { struct flock lock; @@ -130,7 +130,7 @@ static BOOL try_unlock(struct smbcli_state *c, int fstype, return fcntl(fd,F_SETLK,&lock) == 0; } - return False; + return false; } /***************************************************** @@ -207,7 +207,7 @@ static void reconnect(struct smbcli_state *cli[NSERVERS][NCONNECTIONS], -static BOOL test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS], +static bool test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS], char *nfs[NSERVERS], int fnum[NSERVERS][NUMFSTYPES][NCONNECTIONS][NFILES], struct record *rec) @@ -221,7 +221,7 @@ static BOOL test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS], uint_t r2 = rec->r2; enum brl_type op; int server; - BOOL ret[NSERVERS]; + bool ret[NSERVERS]; if (r1 < READ_PCT) { op = READ_LOCK; @@ -243,7 +243,7 @@ static BOOL test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS], op==READ_LOCK?"READ_LOCK":"WRITE_LOCK", ret[0], ret[1]); } - if (ret[0] != ret[1]) return False; + if (ret[0] != ret[1]) return false; } else if (r2 < LOCK_PCT+UNLOCK_PCT) { /* unset a lock */ for (server=0;server