diff options
Diffstat (limited to 'src/datacache/perf_datacache.c')
-rw-r--r-- | src/datacache/perf_datacache.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/datacache/perf_datacache.c b/src/datacache/perf_datacache.c index ce3b4c25d..84bc4a852 100644 --- a/src/datacache/perf_datacache.c +++ b/src/datacache/perf_datacache.c | |||
@@ -47,21 +47,27 @@ static const char *plugin_name; | |||
47 | 47 | ||
48 | static int | 48 | static int |
49 | checkIt (void *cls, | 49 | checkIt (void *cls, |
50 | const struct GNUNET_HashCode *key, size_t size, const char *data, | 50 | const struct GNUNET_HashCode *key, |
51 | size_t size, | ||
52 | const char *data, | ||
51 | enum GNUNET_BLOCK_Type type, | 53 | enum GNUNET_BLOCK_Type type, |
52 | struct GNUNET_TIME_Absolute exp, | 54 | struct GNUNET_TIME_Absolute exp, |
53 | unsigned int path_len, | 55 | unsigned int path_len, |
54 | const struct GNUNET_PeerIdentity *path) | 56 | const struct GNUNET_DHT_PathElement *path) |
55 | { | 57 | { |
56 | if ((size == sizeof(struct GNUNET_HashCode)) && (0 == memcmp (data, cls, | 58 | if ( (size == sizeof(struct GNUNET_HashCode)) && |
57 | size))) | 59 | (0 == memcmp (data, |
60 | cls, | ||
61 | size)) ) | ||
58 | found++; | 62 | found++; |
59 | return GNUNET_OK; | 63 | return GNUNET_OK; |
60 | } | 64 | } |
61 | 65 | ||
62 | 66 | ||
63 | static void | 67 | static void |
64 | run (void *cls, char *const *args, const char *cfgfile, | 68 | run (void *cls, |
69 | char *const *args, | ||
70 | const char *cfgfile, | ||
65 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 71 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
66 | { | 72 | { |
67 | struct GNUNET_DATACACHE_Handle *h; | 73 | struct GNUNET_DATACACHE_Handle *h; |