From 3bdfd4637c6347d617a1e4f14d161a431edfe929 Mon Sep 17 00:00:00 2001 From: Toru Maesaka Date: Sun, 19 Oct 2008 21:33:25 +0900 Subject: Fix for stats opaque issue pointed out at the hackathon and removed some wasteful function calls (more to come). --- items.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'items.h') diff --git a/items.h b/items.h index c41265e..660cc8a 100644 --- a/items.h +++ b/items.h @@ -15,11 +15,11 @@ int do_item_replace(item *it, item *new_it); char *do_item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes); char *do_item_stats(uint32_t (*add_stats)(char *buf, const char *key, const uint16_t klen, const char *val, - const uint32_t vlen), int *bytes); + const uint32_t vlen, void *cookie), void *c, int *bytes); /*@null@*/ -char *do_item_stats_sizes(uint32_t (*add_stats)(char *buf, const char *key, - const uint16_t klen, const char *val, - const uint32_t vlen), int *bytes); +char *do_item_stats_sizes(uint32_t (*add_stats)(char *buf, + const char *key, const uint16_t klen, const char *val, + const uint32_t vlen, void *cookie), void *c, int *bytes); void do_item_flush_expired(void); -- cgit v1.2.1