summaryrefslogtreecommitdiff
path: root/lib/util/bitmap.c
AgeCommit message (Collapse)AuthorFilesLines
2025-11-10lib: Add some const to bitmap functionsVolker Lendecke1-2/+2
The unusual use of const comes from bitmap_copy :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-10lib: Fix bitmap_talloc()'s parameter to unsignedVolker Lendecke1-1/+5
It does not make sense to allocate a negative number of bits Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2018-11-22lib:util: Fix undefined behavior in bitmap.cAndreas Schneider1-3/+3
lib/util/bitmap.c:77: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2016-12-02lib: Avoid includes.h in bitmap.cVolker Lendecke1-1/+4
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2012-11-07lib/util: Simplify bitmap.c a bitVolker Lendecke1-7/+6
This avoids the double-talloc for bitmaps Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2012-11-07lib/util: Make "struct bitmap" abstractVolker Lendecke1-0/+5
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2011-07-08lib/util Move bitmap.c to lib/utilAndrew Bartlett1-0/+137