X-Git-Url: http://dolda2000.com/gitweb/?p=vcfs.git;a=blobdiff_plain;f=store.c;h=4d6497c754f07cffdbe051a7b7f41c9a2a5bb8a0;hp=4d4f14f01f79e09226fb4a5dc359a181cb905470;hb=53439346b3bc42c91a0b118a425ffac04a6f5d33;hpb=487044bbce04292a029b57b04f54b3b9030688fd diff --git a/store.c b/store.c index 4d4f14f..4d6497c 100644 --- a/store.c +++ b/store.c @@ -82,17 +82,17 @@ ssize_t storeget(struct store *st, void *buf, size_t len, struct addr *at) struct addr at2; at2 = *at; - sz = cacheget(st, at2, buf, len); + sz = cacheget(st, &at2, buf, len); if(sz != -2) { if(sz == -1) errno = ENOENT; return(sz); } - sz = st->ops->get(st, buf, len, at2); + sz = st->ops->get(st, buf, len, &at2); if((sz < 0) && (errno == ENOENT)) - cacheput(st, at2, NULL, -1); + cacheput(st, &at2, NULL, -1); else if(sz >= 0) - cacheput(st, at2, buf, sz); + cacheput(st, &at2, buf, sz); return(sz); }