aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_sharetree.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-15 19:19:15 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-15 19:19:15 +0000
commit3870566bc19708599a4ed6b6e8b0103bcc854932 (patch)
treee5c8a187897412dd4a4f005c17b13cd8569e9e2e /src/fs/fs_sharetree.c
parent8b20ea06fdb75740cead194d5c6826b4233ec500 (diff)
downloadgnunet-3870566bc19708599a4ed6b6e8b0103bcc854932.tar.gz
gnunet-3870566bc19708599a4ed6b6e8b0103bcc854932.zip
-minor style fixes
Diffstat (limited to 'src/fs/fs_sharetree.c')
-rw-r--r--src/fs/fs_sharetree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_sharetree.c b/src/fs/fs_sharetree.c
index 2ea00d663..954d450a7 100644
--- a/src/fs/fs_sharetree.c
+++ b/src/fs/fs_sharetree.c
@@ -198,7 +198,7 @@ add_to_keyword_counter (void *cls, const char *keyword, int is_mandatory)
198 * can be NULL (if mime-type is not known) 198 * can be NULL (if mime-type is not known)
199 * @param data actual meta-data found 199 * @param data actual meta-data found
200 * @param data_len number of bytes in data 200 * @param data_len number of bytes in data
201 * @return GNUNET_OK to continue extracting / iterating 201 * @return 0 to continue extracting / iterating
202 */ 202 */
203static int 203static int
204add_to_meta_counter (void *cls, const char *plugin_name, 204add_to_meta_counter (void *cls, const char *plugin_name,
@@ -211,9 +211,9 @@ add_to_meta_counter (void *cls, const char *plugin_name,
211 211
212 GNUNET_CRYPTO_hash (data, data_len, &key); 212 GNUNET_CRYPTO_hash (data, data_len, &key);
213 cnt = GNUNET_CONTAINER_multihashmap_get (map, &key); 213 cnt = GNUNET_CONTAINER_multihashmap_get (map, &key);
214 if (cnt == NULL) 214 if (NULL == cnt)
215 { 215 {
216 cnt = GNUNET_malloc (sizeof (struct MetaCounter)); 216 cnt = GNUNET_new (struct MetaCounter);
217 cnt->data = data; 217 cnt->data = data;
218 cnt->data_size = data_len; 218 cnt->data_size = data_len;
219 cnt->plugin_name = plugin_name; 219 cnt->plugin_name = plugin_name;