aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_namespace.c')
-rw-r--r--src/fs/fs_namespace.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c
index 508f9cadc..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,11 +292,11 @@ 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 {