summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-07 18:18:38 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-08 11:23:23 +0200
commit198ad4df31e5e4ab177d0abb851cb5c0c527f8d4 (patch)
tree1b3ca61b18bca0998c02fb1847b1a9e9ccc87c28 /source3
parent60f353a144f72c09cd6d0694c7afb29aa3eb2516 (diff)
downloadsamba-198ad4df31e5e4ab177d0abb851cb5c0c527f8d4.tar.gz
samba-198ad4df31e5e4ab177d0abb851cb5c0c527f8d4.tar.bz2
samba-198ad4df31e5e4ab177d0abb851cb5c0c527f8d4.zip
s3-lib use True and False in bitmap.c
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/bitmap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/lib/bitmap.c b/source3/lib/bitmap.c
index 5216b05c58..a58b9e953b 100644
--- a/source3/lib/bitmap.c
+++ b/source3/lib/bitmap.c
@@ -64,10 +64,10 @@ bool bitmap_set(struct bitmap *bm, unsigned i)
if (i >= bm->n) {
DEBUG(0,("Setting invalid bitmap entry %d (of %d)\n",
i, bm->n));
- return False;
+ return false;
}
bm->b[i/32] |= (1<<(i%32));
- return True;
+ return true;
}
/****************************************************************************
@@ -78,10 +78,10 @@ bool bitmap_clear(struct bitmap *bm, unsigned i)
if (i >= bm->n) {
DEBUG(0,("clearing invalid bitmap entry %d (of %d)\n",
i, bm->n));
- return False;
+ return false;
}
bm->b[i/32] &= ~(1<<(i%32));
- return True;
+ return true;
}
/****************************************************************************
@@ -89,11 +89,11 @@ query a bit in a bitmap
****************************************************************************/
bool bitmap_query(struct bitmap *bm, unsigned i)
{
- if (i >= bm->n) return False;
+ if (i >= bm->n) return false;
if (bm->b[i/32] & (1<<(i%32))) {
- return True;
+ return true;
}
- return False;
+ return false;
}
/****************************************************************************