Dolda2000 GitWeb
/
vcfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use or instead of add.
[vcfs.git]
/
store.c
diff --git
a/store.c
b/store.c
index
8727512
..
5eef6d8
100644
(file)
--- a/
store.c
+++ b/
store.c
@@
-22,7
+22,7
@@
static ssize_t cacheget(struct store *st, struct addr *a, void *buf, size_t len)
{
int he, i;
{
int he, i;
- he = a->hash[0]
+
((a->hash[1] & 0x0f) << 8);
+ he = a->hash[0]
|
((a->hash[1] & 0x0f) << 8);
for(i = 0; i < 4; i++) {
if(!addrcmp(&st->cache[he * 4 + i].a, a))
break;
for(i = 0; i < 4; i++) {
if(!addrcmp(&st->cache[he * 4 + i].a, a))
break;
@@
-39,7
+39,7
@@
static void cacheput(struct store *st, struct addr *a, const void *data, ssize_t
int he, i;
struct storecache tmp;
int he, i;
struct storecache tmp;
- he = a->hash[0]
+
((a->hash[1] & 0x0f) << 8);
+ he = a->hash[0]
|
((a->hash[1] & 0x0f) << 8);
for(i = 0; i < 4; i++) {
if(!addrcmp(&st->cache[he * 4 + i].a, a))
break;
for(i = 0; i < 4; i++) {
if(!addrcmp(&st->cache[he * 4 + i].a, a))
break;