diff options
Diffstat (limited to 'src/fs/fs_namespace.c')
-rw-r--r-- | src/fs/fs_namespace.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c index f098032d7..155486be5 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c | |||
@@ -214,13 +214,13 @@ write_update_information_graph (struct GNUNET_FS_UpdateInformationGraph *uig) | |||
214 | n = uig->update_nodes[i]; | 214 | n = uig->update_nodes[i]; |
215 | uris = GNUNET_FS_uri_to_string (n->uri); | 215 | uris = GNUNET_FS_uri_to_string (n->uri); |
216 | struct GNUNET_BIO_WriteSpec ws[] = { | 216 | struct GNUNET_BIO_WriteSpec ws[] = { |
217 | GNUNET_BIO_write_spec_string("fs-namespace-node-id", n->id), | 217 | GNUNET_BIO_write_spec_string ("fs-namespace-node-id", n->id), |
218 | GNUNET_BIO_write_spec_meta_data("fs-namespace-node-meta", n->md), | 218 | GNUNET_BIO_write_spec_meta_data ("fs-namespace-node-meta", n->md), |
219 | GNUNET_BIO_write_spec_string("fs-namespace-node-update", n->update), | 219 | GNUNET_BIO_write_spec_string ("fs-namespace-node-update", n->update), |
220 | GNUNET_BIO_write_spec_string("fs-namespace-uris", uris), | 220 | GNUNET_BIO_write_spec_string ("fs-namespace-uris", uris), |
221 | GNUNET_BIO_write_spec_end(), | 221 | GNUNET_BIO_write_spec_end (), |
222 | }; | 222 | }; |
223 | if (GNUNET_OK != GNUNET_BIO_write_spec_commit(wh, ws)) | 223 | if (GNUNET_OK != GNUNET_BIO_write_spec_commit (wh, ws)) |
224 | { | 224 | { |
225 | GNUNET_free (uris); | 225 | GNUNET_free (uris); |
226 | break; | 226 | break; |
@@ -292,17 +292,17 @@ read_update_information_graph (struct GNUNET_FS_Handle *h, | |||
292 | { | 292 | { |
293 | n = GNUNET_new (struct NamespaceUpdateNode); | 293 | n = GNUNET_new (struct NamespaceUpdateNode); |
294 | struct GNUNET_BIO_ReadSpec rs[] = { | 294 | struct GNUNET_BIO_ReadSpec rs[] = { |
295 | GNUNET_BIO_read_spec_string("identifier", &n->id, 1024), | 295 | GNUNET_BIO_read_spec_string ("identifier", &n->id, 1024), |
296 | GNUNET_BIO_read_spec_meta_data("meta", &n->md), | 296 | GNUNET_BIO_read_spec_meta_data ("meta", &n->md), |
297 | GNUNET_BIO_read_spec_string("update-id", &n->update, 1024), | 297 | GNUNET_BIO_read_spec_string ("update-id", &n->update, 1024), |
298 | GNUNET_BIO_read_spec_string("uri", &uris, 1024 * 2), | 298 | GNUNET_BIO_read_spec_string ("uri", &uris, 1024 * 2), |
299 | GNUNET_BIO_read_spec_end(), | 299 | GNUNET_BIO_read_spec_end (), |
300 | }; | 300 | }; |
301 | if (GNUNET_OK != GNUNET_BIO_read_spec_commit (rh, rs)) | 301 | if (GNUNET_OK != GNUNET_BIO_read_spec_commit (rh, rs)) |
302 | { | 302 | { |
303 | GNUNET_break (0); | 303 | GNUNET_break (0); |
304 | GNUNET_free_non_null (n->id); | 304 | GNUNET_free (n->id); |
305 | GNUNET_free_non_null (n->update); | 305 | GNUNET_free (n->update); |
306 | if (n->md != NULL) | 306 | if (n->md != NULL) |
307 | GNUNET_CONTAINER_meta_data_destroy (n->md); | 307 | GNUNET_CONTAINER_meta_data_destroy (n->md); |
308 | GNUNET_free (n); | 308 | GNUNET_free (n); |
@@ -315,7 +315,7 @@ read_update_information_graph (struct GNUNET_FS_Handle *h, | |||
315 | GNUNET_break (0); | 315 | GNUNET_break (0); |
316 | GNUNET_free (emsg); | 316 | GNUNET_free (emsg); |
317 | GNUNET_free (n->id); | 317 | GNUNET_free (n->id); |
318 | GNUNET_free_non_null (n->update); | 318 | GNUNET_free (n->update); |
319 | GNUNET_CONTAINER_meta_data_destroy (n->md); | 319 | GNUNET_CONTAINER_meta_data_destroy (n->md); |
320 | GNUNET_free (n); | 320 | GNUNET_free (n); |
321 | break; | 321 | break; |