aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_disk.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-10-25 19:28:48 +0000
committerChristian Grothoff <christian@grothoff.org>2009-10-25 19:28:48 +0000
commit99bb34bf91253eb90fd1bc900af88580c6461e53 (patch)
tree12802c0669e910d45fbb811f71aa642bb4bb6332 /src/util/test_disk.c
parentc3bf5dd8d37b9e65a973c9fb83734f8ff7401266 (diff)
downloadgnunet-99bb34bf91253eb90fd1bc900af88580c6461e53.tar.gz
gnunet-99bb34bf91253eb90fd1bc900af88580c6461e53.zip
more consistent disk API
Diffstat (limited to 'src/util/test_disk.c')
-rw-r--r--src/util/test_disk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/test_disk.c b/src/util/test_disk.c
index 705a24abf..8b485edc5 100644
--- a/src/util/test_disk.c
+++ b/src/util/test_disk.c
@@ -36,8 +36,10 @@ testReadWrite ()
36 char tmp[100 + 1]; 36 char tmp[100 + 1];
37 int ret; 37 int ret;
38 38
39 if (GNUNET_OK != GNUNET_DISK_fn_write (".testfile", TESTSTRING, strlen ( 39 if (strlen(TESTSTRING) !=
40 TESTSTRING), GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE)) 40 GNUNET_DISK_fn_write (".testfile", TESTSTRING,
41 strlen (TESTSTRING),
42 GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE))
41 return 1; 43 return 1;
42 if (GNUNET_OK != GNUNET_DISK_file_test (".testfile")) 44 if (GNUNET_OK != GNUNET_DISK_file_test (".testfile"))
43 return 1; 45 return 1;