diff options
author | Alasdair Kergon <agk@redhat.com> | 2007-04-27 14:52:41 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2007-04-27 14:52:41 +0000 |
commit | 8d2b0f24d352d902800219f04cff680e9ebc0431 (patch) | |
tree | 2a01e0dcf644d3ebd9a46f13ba4953288c871e54 /libdm/datastruct | |
parent | 30b95041de31b2c2627623bf02500db411203e2e (diff) | |
download | lvm2-8d2b0f24d352d902800219f04cff680e9ebc0431.tar.gz |
Deal with some more compiler warnings. Hope this doesn't break anything...
Diffstat (limited to 'libdm/datastruct')
-rw-r--r-- | libdm/datastruct/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdm/datastruct/hash.c b/libdm/datastruct/hash.c index d44d40d89..9362d1de5 100644 --- a/libdm/datastruct/hash.c +++ b/libdm/datastruct/hash.c @@ -68,14 +68,14 @@ static struct dm_hash_node *_create_node(const char *str, unsigned len) return n; } -static unsigned long _hash(const unsigned char *str, unsigned len) +static unsigned long _hash(const char *str, unsigned len) { unsigned long h = 0, g; unsigned i; for (i = 0; i < len; i++) { h <<= 4; - h += _nums[*str++]; + h += _nums[(unsigned char) *str++]; g = h & ((unsigned long) 0xf << 16u); if (g) { h ^= g >> 16u; |