aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-06-11 00:50:59 +0000
committerMike Frysinger <vapier@gentoo.org>2005-06-11 00:50:59 +0000
commita34f99930daa45d52de31740a54e3989eda83d6f (patch)
tree2e86ed646409f94268fc5cbf541c26e4143c6d27 /e2fsprogs
parent7ffce0c119a9c87e02908f19dae777a1760d9a03 (diff)
downloadbusybox-a34f99930daa45d52de31740a54e3989eda83d6f.tar.gz
fix signed/unsigned char pointers
Diffstat (limited to 'e2fsprogs')
-rw-r--r--e2fsprogs/ext2fs/bitops.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/ext2fs/bitops.h b/e2fsprogs/ext2fs/bitops.h
index c4c33819c..96db548d6 100644
--- a/e2fsprogs/ext2fs/bitops.h
+++ b/e2fsprogs/ext2fs/bitops.h
@@ -320,8 +320,8 @@ _INLINE_ __u32 ext2fs_swab32(__u32 val)
#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 @@ _INLINE_ int ext2fs_find_first_bit_set(void * addr, unsigned size)
d0 = ffs(*cp);
if (d0 == 0)
return size;
-
+
return res + d0 - 1;
}