diff options
Diffstat (limited to 'src/fs/gnunet-auto-share.c')
-rw-r--r-- | src/fs/gnunet-auto-share.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/fs/gnunet-auto-share.c b/src/fs/gnunet-auto-share.c index 41dfe781a..f91e9d00d 100644 --- a/src/fs/gnunet-auto-share.c +++ b/src/fs/gnunet-auto-share.c | |||
@@ -201,9 +201,9 @@ load_state () | |||
201 | while (n-- > 0) | 201 | while (n-- > 0) |
202 | { | 202 | { |
203 | struct GNUNET_BIO_ReadSpec rs[] = { | 203 | struct GNUNET_BIO_ReadSpec rs[] = { |
204 | GNUNET_BIO_read_spec_string("filename", &fn, 1024), | 204 | GNUNET_BIO_read_spec_string ("filename", &fn, 1024), |
205 | GNUNET_BIO_read_spec_object("id", &id, sizeof(struct GNUNET_HashCode)), | 205 | GNUNET_BIO_read_spec_object ("id", &id, sizeof(struct GNUNET_HashCode)), |
206 | GNUNET_BIO_read_spec_end(), | 206 | GNUNET_BIO_read_spec_end (), |
207 | }; | 207 | }; |
208 | if (GNUNET_OK != GNUNET_BIO_read_spec_commit (rh, rs)) | 208 | if (GNUNET_OK != GNUNET_BIO_read_spec_commit (rh, rs)) |
209 | goto error; | 209 | goto error; |
@@ -258,7 +258,8 @@ write_item (void *cls, const struct GNUNET_HashCode *key, void *value) | |||
258 | struct GNUNET_BIO_WriteSpec ws[] = { | 258 | struct GNUNET_BIO_WriteSpec ws[] = { |
259 | GNUNET_BIO_write_spec_string ("auto-share-write-item-filename", | 259 | GNUNET_BIO_write_spec_string ("auto-share-write-item-filename", |
260 | wi->filename), | 260 | wi->filename), |
261 | GNUNET_BIO_write_spec_object ("id", &wi->id, sizeof(struct GNUNET_HashCode)), | 261 | GNUNET_BIO_write_spec_object ("id", &wi->id, sizeof(struct |
262 | GNUNET_HashCode)), | ||
262 | GNUNET_BIO_write_spec_end (), | 263 | GNUNET_BIO_write_spec_end (), |
263 | }; | 264 | }; |
264 | if (GNUNET_OK != GNUNET_BIO_write_spec_commit (wh, ws)) | 265 | if (GNUNET_OK != GNUNET_BIO_write_spec_commit (wh, ws)) |
@@ -747,7 +748,7 @@ main (int argc, char *const *argv) | |||
747 | 748 | ||
748 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) | 749 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) |
749 | return 2; | 750 | return 2; |
750 | sigpipe = GNUNET_DISK_pipe (GNUNET_NO, GNUNET_NO, GNUNET_NO, GNUNET_NO); | 751 | sigpipe = GNUNET_DISK_pipe (GNUNET_DISK_PF_NONE); |
751 | GNUNET_assert (NULL != sigpipe); | 752 | GNUNET_assert (NULL != sigpipe); |
752 | shc_chld = | 753 | shc_chld = |
753 | GNUNET_SIGNAL_handler_install (GNUNET_SIGCHLD, &sighandler_child_death); | 754 | GNUNET_SIGNAL_handler_install (GNUNET_SIGCHLD, &sighandler_child_death); |