diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-04-15 01:58:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-15 12:44:40 -0400 |
commit | 95c961747284a6b83a5e2d81240e214b0fa3464d (patch) | |
tree | c7be86a00db3605a48a03109fafcbe31039ca2e0 /net/ceph/ceph_hash.c | |
parent | 5e73ea1a31c3612aa6dfe44f864ca5b7b6a4cff9 (diff) |
net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ceph/ceph_hash.c')
-rw-r--r-- | net/ceph/ceph_hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ceph/ceph_hash.c b/net/ceph/ceph_hash.c index 0a1b53bce76d..67bb1f11e613 100644 --- a/net/ceph/ceph_hash.c +++ b/net/ceph/ceph_hash.c | |||
@@ -20,7 +20,7 @@ | |||
20 | c = c - a; c = c - b; c = c ^ (b >> 15); \ | 20 | c = c - a; c = c - b; c = c ^ (b >> 15); \ |
21 | } while (0) | 21 | } while (0) |
22 | 22 | ||
23 | unsigned ceph_str_hash_rjenkins(const char *str, unsigned length) | 23 | unsigned int ceph_str_hash_rjenkins(const char *str, unsigned int length) |
24 | { | 24 | { |
25 | const unsigned char *k = (const unsigned char *)str; | 25 | const unsigned char *k = (const unsigned char *)str; |
26 | __u32 a, b, c; /* the internal state */ | 26 | __u32 a, b, c; /* the internal state */ |
@@ -81,7 +81,7 @@ unsigned ceph_str_hash_rjenkins(const char *str, unsigned length) | |||
81 | /* | 81 | /* |
82 | * linux dcache hash | 82 | * linux dcache hash |
83 | */ | 83 | */ |
84 | unsigned ceph_str_hash_linux(const char *str, unsigned length) | 84 | unsigned int ceph_str_hash_linux(const char *str, unsigned int length) |
85 | { | 85 | { |
86 | unsigned long hash = 0; | 86 | unsigned long hash = 0; |
87 | unsigned char c; | 87 | unsigned char c; |
@@ -94,7 +94,7 @@ unsigned ceph_str_hash_linux(const char *str, unsigned length) | |||
94 | } | 94 | } |
95 | 95 | ||
96 | 96 | ||
97 | unsigned ceph_str_hash(int type, const char *s, unsigned len) | 97 | unsigned int ceph_str_hash(int type, const char *s, unsigned int len) |
98 | { | 98 | { |
99 | switch (type) { | 99 | switch (type) { |
100 | case CEPH_STR_HASH_LINUX: | 100 | case CEPH_STR_HASH_LINUX: |