PATCH: unsigned/signed #3

andreas moroder claudiamoroder at st-ulrich.suedtirol.net
Mon Feb 18 12:46:37 GMT 2002


Hello,

here a slightly changed repost of  my patch to bitmap.c

I changed from uint32 to unsigned so Andrew Bartlet should like it too.

Bye

Andreas

--- lib/bitmap.c	Mon Feb 18 21:27:07 2002
+++ lib/bitmap.and	Mon Feb 18 21:26:36 2002
@@ -26,7 +26,7 @@
 /****************************************************************************
 allocate a bitmap of the specified size
 ****************************************************************************/
-struct bitmap *bitmap_allocate(int n)
+struct bitmap *bitmap_allocate(unsigned n)
 {
 	struct bitmap *bm;
 
@@ -105,7 +105,7 @@
 ****************************************************************************/
 int bitmap_find(struct bitmap *bm, unsigned ofs)
 {
-	int i, j;
+	unsigned i, j;
 
 	if (ofs > bm->n) ofs = 0;
 




--- include/smb.h	Sun Feb 17 14:59:03 2002
+++ include/smb.and	Mon Feb 18 21:15:25 2002
@@ -754,7 +754,7 @@

 struct bitmap {
 	uint32 *b;
-	int n;
+	unsigned n;
 };

 #define FLAG_BASIC 	0x01 /* fundamental options */




More information about the samba-technical mailing list