[BusyBox-cvs] svn commit: trunk/busybox/e2fsprogs/ext2fs

vapier at busybox.net vapier at busybox.net
Sat Jun 11 00:50:59 UTC 2005


Author: vapier
Date: 2005-06-10 18:50:59 -0600 (Fri, 10 Jun 2005)
New Revision: 10524

Log:
fix signed/unsigned char pointers

Modified:
   trunk/busybox/e2fsprogs/ext2fs/bitops.h


Changeset:
Modified: trunk/busybox/e2fsprogs/ext2fs/bitops.h
===================================================================
--- trunk/busybox/e2fsprogs/ext2fs/bitops.h	2005-06-11 00:45:50 UTC (rev 10523)
+++ trunk/busybox/e2fsprogs/ext2fs/bitops.h	2005-06-11 00:50:59 UTC (rev 10524)
@@ -320,8 +320,8 @@
 #if !defined(_EXT2_HAVE_ASM_FINDBIT_)
 _INLINE_ int ext2fs_find_first_bit_set(void * addr, unsigned size)
 {
-	char	*cp = (unsigned char *) addr;
-	int 	res = 0, d0;
+	unsigned char *cp = (unsigned char *) addr;
+	int res = 0, d0;
 
 	if (!size)
 		return 0;
@@ -333,7 +333,7 @@
 	d0 = ffs(*cp);
 	if (d0 == 0)
 		return size;
-	
+
 	return res + d0 - 1;
 }
 




More information about the busybox-cvs mailing list