diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-12 19:07:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-12 19:07:40 +0000 |
commit | 6c471eeb15e27f8226492b4860a3c2acb94c5f25 (patch) | |
tree | a3a9dcba12ee5356c03056c10b7aba5367b2ef34 /src/fs/fs_sharetree.c | |
parent | 16bcbbea7133fd2265d46bd2ae1dc70e8c9ba96f (diff) | |
download | gnunet-6c471eeb15e27f8226492b4860a3c2acb94c5f25.tar.gz gnunet-6c471eeb15e27f8226492b4860a3c2acb94c5f25.zip |
-consistently use struct GNUNET_HashCode
Diffstat (limited to 'src/fs/fs_sharetree.c')
-rw-r--r-- | src/fs/fs_sharetree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fs/fs_sharetree.c b/src/fs/fs_sharetree.c index c929428e1..f75571c46 100644 --- a/src/fs/fs_sharetree.c +++ b/src/fs/fs_sharetree.c | |||
@@ -162,7 +162,7 @@ add_to_keyword_counter (void *cls, const char *keyword, int is_mandatory) | |||
162 | { | 162 | { |
163 | struct GNUNET_CONTAINER_MultiHashMap *mcm = cls; | 163 | struct GNUNET_CONTAINER_MultiHashMap *mcm = cls; |
164 | struct KeywordCounter *cnt; | 164 | struct KeywordCounter *cnt; |
165 | GNUNET_HashCode hc; | 165 | struct GNUNET_HashCode hc; |
166 | size_t klen; | 166 | size_t klen; |
167 | 167 | ||
168 | klen = strlen (keyword) + 1; | 168 | klen = strlen (keyword) + 1; |
@@ -206,7 +206,7 @@ add_to_meta_counter (void *cls, const char *plugin_name, | |||
206 | const char *data_mime_type, const char *data, size_t data_len) | 206 | const char *data_mime_type, const char *data, size_t data_len) |
207 | { | 207 | { |
208 | struct GNUNET_CONTAINER_MultiHashMap *map = cls; | 208 | struct GNUNET_CONTAINER_MultiHashMap *map = cls; |
209 | GNUNET_HashCode key; | 209 | struct GNUNET_HashCode key; |
210 | struct MetaCounter *cnt; | 210 | struct MetaCounter *cnt; |
211 | 211 | ||
212 | GNUNET_CRYPTO_hash (data, data_len, &key); | 212 | GNUNET_CRYPTO_hash (data, data_len, &key); |
@@ -243,7 +243,7 @@ remove_high_frequency_keywords (void *cls, const char *keyword, int is_mandatory | |||
243 | { | 243 | { |
244 | struct TrimContext *tc = cls; | 244 | struct TrimContext *tc = cls; |
245 | struct KeywordCounter *counter; | 245 | struct KeywordCounter *counter; |
246 | GNUNET_HashCode hc; | 246 | struct GNUNET_HashCode hc; |
247 | size_t klen; | 247 | size_t klen; |
248 | 248 | ||
249 | klen = strlen (keyword) + 1; | 249 | klen = strlen (keyword) + 1; |
@@ -268,7 +268,7 @@ remove_high_frequency_keywords (void *cls, const char *keyword, int is_mandatory | |||
268 | * @return GNUNET_YES (always) | 268 | * @return GNUNET_YES (always) |
269 | */ | 269 | */ |
270 | static int | 270 | static int |
271 | migrate_and_drop_keywords (void *cls, const GNUNET_HashCode * key, void *value) | 271 | migrate_and_drop_keywords (void *cls, const struct GNUNET_HashCode * key, void *value) |
272 | { | 272 | { |
273 | struct TrimContext *tc = cls; | 273 | struct TrimContext *tc = cls; |
274 | struct KeywordCounter *counter = value; | 274 | struct KeywordCounter *counter = value; |
@@ -299,7 +299,7 @@ migrate_and_drop_keywords (void *cls, const GNUNET_HashCode * key, void *value) | |||
299 | * @return GNUNET_YES (always) | 299 | * @return GNUNET_YES (always) |
300 | */ | 300 | */ |
301 | static int | 301 | static int |
302 | migrate_and_drop_metadata (void *cls, const GNUNET_HashCode * key, void *value) | 302 | migrate_and_drop_metadata (void *cls, const struct GNUNET_HashCode * key, void *value) |
303 | { | 303 | { |
304 | struct TrimContext *tc = cls; | 304 | struct TrimContext *tc = cls; |
305 | struct MetaCounter *counter = value; | 305 | struct MetaCounter *counter = value; |