summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-01 06:30:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-01 06:30:12 +0000
commit7c1698d3029538dbd53b4e605392bf42e8cb2909 (patch)
tree4bd814440fdd12871cae61b9bab3149dc3457159 /source3
parente0adea449aeb9432572ea0d8af014dcc2d0c4cf1 (diff)
downloadsamba-7c1698d3029538dbd53b4e605392bf42e8cb2909.tar.gz
samba-7c1698d3029538dbd53b4e605392bf42e8cb2909.tar.bz2
samba-7c1698d3029538dbd53b4e605392bf42e8cb2909.zip
Bitmap offsets and counts are always positive.
(This used to be commit 8f495e8634a1777c4b03d3ec07c76f905ff2fb98)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h2
-rw-r--r--source3/lib/bitmap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 8138555539..279b79eace 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -807,7 +807,7 @@ struct parm_struct
struct bitmap {
uint32 *b;
- int n;
+ unsigned int n;
};
#define FLAG_BASIC 0x0001 /* fundamental options */
diff --git a/source3/lib/bitmap.c b/source3/lib/bitmap.c
index 26d21d085f..1023dd6541 100644
--- a/source3/lib/bitmap.c
+++ b/source3/lib/bitmap.c
@@ -129,7 +129,7 @@ wraparound
****************************************************************************/
int bitmap_find(struct bitmap *bm, unsigned ofs)
{
- int i, j;
+ unsigned int i, j;
if (ofs > bm->n) ofs = 0;