summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;