aboutsummaryrefslogtreecommitdiff
path: root/src/datacache
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-04-24 13:08:05 +0000
committerChristian Grothoff <christian@grothoff.org>2010-04-24 13:08:05 +0000
commit32892c4aa7736eb8039f28d79b5cdb53cdc0061c (patch)
tree9729d165562c1780934a9a979dbc06d7f8470592 /src/datacache
parentbf6e480c1dda383bd55b311039d8d41189c5feea (diff)
downloadgnunet-32892c4aa7736eb8039f28d79b5cdb53cdc0061c.tar.gz
gnunet-32892c4aa7736eb8039f28d79b5cdb53cdc0061c.zip
off-line hack fest
Diffstat (limited to 'src/datacache')
-rw-r--r--src/datacache/datacache.c4
-rw-r--r--src/datacache/perf_datacache.c2
-rw-r--r--src/datacache/plugin_datacache.h4
-rw-r--r--src/datacache/plugin_datacache_sqlite.c4
-rw-r--r--src/datacache/plugin_datacache_template.c4
-rw-r--r--src/datacache/test_datacache.c2
6 files changed, 10 insertions, 10 deletions
diff --git a/src/datacache/datacache.c b/src/datacache/datacache.c
index c8530055d..4c474e9ba 100644
--- a/src/datacache/datacache.c
+++ b/src/datacache/datacache.c
@@ -224,7 +224,7 @@ GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,
224 const GNUNET_HashCode * key, 224 const GNUNET_HashCode * key,
225 uint32_t size, 225 uint32_t size,
226 const char *data, 226 const char *data,
227 unsigned int type, 227 enum GNUNET_BLOCK_Type type,
228 struct GNUNET_TIME_Absolute discard_time) 228 struct GNUNET_TIME_Absolute discard_time)
229{ 229{
230 uint32_t used; 230 uint32_t used;
@@ -259,7 +259,7 @@ GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h,
259unsigned int 259unsigned int
260GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, 260GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h,
261 const GNUNET_HashCode * key, 261 const GNUNET_HashCode * key,
262 unsigned int type, 262 enum GNUNET_BLOCK_Type type,
263 GNUNET_DATACACHE_Iterator iter, 263 GNUNET_DATACACHE_Iterator iter,
264 void *iter_cls) 264 void *iter_cls)
265{ 265{
diff --git a/src/datacache/perf_datacache.c b/src/datacache/perf_datacache.c
index 818b6f816..45d2d008b 100644
--- a/src/datacache/perf_datacache.c
+++ b/src/datacache/perf_datacache.c
@@ -42,7 +42,7 @@ checkIt (void *cls,
42 const GNUNET_HashCode * key, 42 const GNUNET_HashCode * key,
43 uint32_t size, 43 uint32_t size,
44 const char *data, 44 const char *data,
45 uint32_t type) 45 enum GNUNET_BLOCK_Type type)
46{ 46{
47 if ( (size == sizeof (GNUNET_HashCode)) && 47 if ( (size == sizeof (GNUNET_HashCode)) &&
48 (0 == memcmp (data, cls, size)) ) 48 (0 == memcmp (data, cls, size)) )
diff --git a/src/datacache/plugin_datacache.h b/src/datacache/plugin_datacache.h
index d3768cf44..c7360834b 100644
--- a/src/datacache/plugin_datacache.h
+++ b/src/datacache/plugin_datacache.h
@@ -116,7 +116,7 @@ struct GNUNET_DATACACHE_PluginFunctions {
116 const GNUNET_HashCode * key, 116 const GNUNET_HashCode * key,
117 uint32_t size, 117 uint32_t size,
118 const char *data, 118 const char *data,
119 uint32_t type, 119 enum GNUNET_BLOCK_Type type,
120 struct GNUNET_TIME_Absolute discard_time); 120 struct GNUNET_TIME_Absolute discard_time);
121 121
122 122
@@ -133,7 +133,7 @@ struct GNUNET_DATACACHE_PluginFunctions {
133 */ 133 */
134 unsigned int (*get) (void *cls, 134 unsigned int (*get) (void *cls,
135 const GNUNET_HashCode * key, 135 const GNUNET_HashCode * key,
136 uint32_t type, 136 enum GNUNET_BLOCK_Type type,
137 GNUNET_DATACACHE_Iterator iter, 137 GNUNET_DATACACHE_Iterator iter,
138 void *iter_cls); 138 void *iter_cls);
139 139
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c
index 7595211c1..98bcae788 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -99,7 +99,7 @@ sqlite_plugin_put (void *cls,
99 const GNUNET_HashCode * key, 99 const GNUNET_HashCode * key,
100 uint32_t size, 100 uint32_t size,
101 const char *data, 101 const char *data,
102 uint32_t type, 102 enum GNUNET_BLOCK_Type type,
103 struct GNUNET_TIME_Absolute discard_time) 103 struct GNUNET_TIME_Absolute discard_time)
104{ 104{
105 struct Plugin *plugin = cls; 105 struct Plugin *plugin = cls;
@@ -166,7 +166,7 @@ sqlite_plugin_put (void *cls,
166static unsigned int 166static unsigned int
167sqlite_plugin_get (void *cls, 167sqlite_plugin_get (void *cls,
168 const GNUNET_HashCode * key, 168 const GNUNET_HashCode * key,
169 uint32_t type, 169 enum GNUNET_BLOCK_Type type,
170 GNUNET_DATACACHE_Iterator iter, 170 GNUNET_DATACACHE_Iterator iter,
171 void *iter_cls) 171 void *iter_cls)
172{ 172{
diff --git a/src/datacache/plugin_datacache_template.c b/src/datacache/plugin_datacache_template.c
index 163f72a7a..8488d5a32 100644
--- a/src/datacache/plugin_datacache_template.c
+++ b/src/datacache/plugin_datacache_template.c
@@ -56,7 +56,7 @@ template_plugin_put (void *cls,
56 const GNUNET_HashCode * key, 56 const GNUNET_HashCode * key,
57 uint32_t size, 57 uint32_t size,
58 const char *data, 58 const char *data,
59 uint32_t type, 59 enum GNUNET_BLOCK_Type type,
60 struct GNUNET_TIME_Absolute discard_time) 60 struct GNUNET_TIME_Absolute discard_time)
61{ 61{
62 GNUNET_break (0); 62 GNUNET_break (0);
@@ -78,7 +78,7 @@ template_plugin_put (void *cls,
78static unsigned int 78static unsigned int
79template_plugin_get (void *cls, 79template_plugin_get (void *cls,
80 const GNUNET_HashCode * key, 80 const GNUNET_HashCode * key,
81 uint32_t type, 81 enum GNUNET_BLOCK_Type type,
82 GNUNET_DATACACHE_Iterator iter, 82 GNUNET_DATACACHE_Iterator iter,
83 void *iter_cls) 83 void *iter_cls)
84{ 84{
diff --git a/src/datacache/test_datacache.c b/src/datacache/test_datacache.c
index c896b667b..babbff72e 100644
--- a/src/datacache/test_datacache.c
+++ b/src/datacache/test_datacache.c
@@ -39,7 +39,7 @@ checkIt (void *cls,
39 const GNUNET_HashCode * key, 39 const GNUNET_HashCode * key,
40 uint32_t size, 40 uint32_t size,
41 const char *data, 41 const char *data,
42 uint32_t type) 42 enum GNUNET_BLOCK_Type type)
43{ 43{
44 if (size != sizeof (GNUNET_HashCode)) 44 if (size != sizeof (GNUNET_HashCode))
45 { 45 {