diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_disk_lib.h | 8 | ||||
-rw-r--r-- | src/testbed/gnunet_mpi_test.c | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index b794088c4..e45ab84f4 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h | |||
@@ -614,8 +614,8 @@ GNUNET_DISK_file_write_blocking (const struct GNUNET_DISK_FileHandle *h, | |||
614 | * with @a buf_size bytes could be written to @a filename. | 614 | * with @a buf_size bytes could be written to @a filename. |
615 | * | 615 | * |
616 | * @param fn file name | 616 | * @param fn file name |
617 | * @param buffer the data to write | 617 | * @param buf the data to write |
618 | * @param n number of bytes to write | 618 | * @param buf_size number of bytes to write from @a buf |
619 | * @param mode file permissions | 619 | * @param mode file permissions |
620 | * @return #GNUNET_OK on success, | 620 | * @return #GNUNET_OK on success, |
621 | * #GNUNET_NO if a file existed under @a filename | 621 | * #GNUNET_NO if a file existed under @a filename |
@@ -623,8 +623,8 @@ GNUNET_DISK_file_write_blocking (const struct GNUNET_DISK_FileHandle *h, | |||
623 | */ | 623 | */ |
624 | enum GNUNET_GenericReturnValue | 624 | enum GNUNET_GenericReturnValue |
625 | GNUNET_DISK_fn_write (const char *fn, | 625 | GNUNET_DISK_fn_write (const char *fn, |
626 | const void *buffer, | 626 | const void *buf, |
627 | size_t n, | 627 | size_t buf_size, |
628 | enum GNUNET_DISK_AccessPermissions mode); | 628 | enum GNUNET_DISK_AccessPermissions mode); |
629 | 629 | ||
630 | 630 | ||
diff --git a/src/testbed/gnunet_mpi_test.c b/src/testbed/gnunet_mpi_test.c index 241e5c53e..2ee707fe6 100644 --- a/src/testbed/gnunet_mpi_test.c +++ b/src/testbed/gnunet_mpi_test.c | |||
@@ -49,6 +49,7 @@ main (int argc, char *argv[]) | |||
49 | (void) GNUNET_asprintf (&filename, "%d-%d.mpiout", (int) pid, rank); | 49 | (void) GNUNET_asprintf (&filename, "%d-%d.mpiout", (int) pid, rank); |
50 | msg_size = GNUNET_asprintf (&msg, "My rank is: %d\n", rank); | 50 | msg_size = GNUNET_asprintf (&msg, "My rank is: %d\n", rank); |
51 | printf ("%s", msg); | 51 | printf ("%s", msg); |
52 | (void) GNUNET_DISK_directory_remove (filename); | ||
52 | if (GNUNET_OK == | 53 | if (GNUNET_OK == |
53 | GNUNET_DISK_fn_write (filename, msg, msg_size, | 54 | GNUNET_DISK_fn_write (filename, msg, msg_size, |
54 | GNUNET_DISK_PERM_USER_READ | 55 | GNUNET_DISK_PERM_USER_READ |