From: Sage Weil Date: Wed, 2 Dec 2009 20:03:53 +0000 (-0800) Subject: hash: fix whitespace X-Git-Tag: v0.18~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=54b8537c75e32ca835d88c5b018560e5453ae64a;p=ceph.git hash: fix whitespace --- diff --git a/src/include/ceph_hash.cc b/src/include/ceph_hash.cc index 1c44e43fe89e..bd570015d147 100644 --- a/src/include/ceph_hash.cc +++ b/src/include/ceph_hash.cc @@ -82,14 +82,14 @@ unsigned ceph_str_hash_rjenkins(const char *str, unsigned length) */ unsigned ceph_str_hash_linux(const char *str, unsigned length) { - unsigned long hash = 0; + unsigned long hash = 0; unsigned char c; - while (length--) { + while (length--) { c = *str++; hash = (hash + (c << 4) + (c >> 4)) * 11; } - return hash; + return hash; } @@ -105,7 +105,7 @@ unsigned ceph_str_hash(int type, const char *s, unsigned len) } } -const char *ceph_str_hash_name(int type) +const char *ceph_str_hash_name(int type) { switch (type) { case CEPH_STR_HASH_LINUX: