summaryrefslogtreecommitdiff
path: root/legacy/eet/src/lib/eet_utils.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-10-21 05:40:01 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-10-21 05:40:01 +0000
commit8893a9ff35f58e012be3cc838bd94268add13e10 (patch)
treee5c560542a70ccf657e1da45fb57d8dee99d3348 /legacy/eet/src/lib/eet_utils.c
parenta331fe3bca4816e3a45662afd986e364b3586eed (diff)
ran ecrustify on eet. this seems to do a good job of eet. comments?
SVN revision: 64237
Diffstat (limited to 'legacy/eet/src/lib/eet_utils.c')
-rw-r--r--legacy/eet/src/lib/eet_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/eet/src/lib/eet_utils.c b/legacy/eet/src/lib/eet_utils.c
index 5fcdaf4f99..8e591a2833 100644
--- a/legacy/eet/src/lib/eet_utils.c
+++ b/legacy/eet/src/lib/eet_utils.c
@@ -19,13 +19,13 @@ _eet_hash_gen(const char *key,
19 19
20 /* no string - index 0 */ 20 /* no string - index 0 */
21 if (!key) 21 if (!key)
22 return 0; 22 return 0;
23 23
24 /* calc hash num */ 24 /* calc hash num */
25 for (i = 0, ptr = (unsigned char *)key, value = (int)(*ptr); 25 for (i = 0, ptr = (unsigned char *)key, value = (int)(*ptr);
26 value; 26 value;
27 ptr++, i++, value = (int)(*ptr)) 27 ptr++, i++, value = (int)(*ptr))
28 hash_num ^= (value | (value << 8)) >> (i & 0x7); 28 hash_num ^= (value | (value << 8)) >> (i & 0x7);
29 29
30 /* mask it */ 30 /* mask it */
31 mask = (1 << hash_size) - 1; 31 mask = (1 << hash_size) - 1;