diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/disk.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index e6b542adf..430d9cc46 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -1047,8 +1047,10 @@ GNUNET_DISK_directory_iterator_next (struct GNUNET_DISK_DirectoryIterator *iter, | |||
1047 | * @param dirName the name of the directory | 1047 | * @param dirName the name of the directory |
1048 | * @param callback the method to call for each file | 1048 | * @param callback the method to call for each file |
1049 | * @param callback_cls closure for callback | 1049 | * @param callback_cls closure for callback |
1050 | * @return GNUNET_YES if directory is not empty and @callback | ||
1051 | * will be called later, GNUNET_NO otherwise, GNUNET_SYSERR on error. | ||
1050 | */ | 1052 | */ |
1051 | void | 1053 | int |
1052 | GNUNET_DISK_directory_iterator_start (enum GNUNET_SCHEDULER_Priority prio, | 1054 | GNUNET_DISK_directory_iterator_start (enum GNUNET_SCHEDULER_Priority prio, |
1053 | const char *dirName, | 1055 | const char *dirName, |
1054 | GNUNET_DISK_DirectoryIteratorCallback | 1056 | GNUNET_DISK_DirectoryIteratorCallback |
@@ -1064,11 +1066,11 @@ GNUNET_DISK_directory_iterator_start (enum GNUNET_SCHEDULER_Priority prio, | |||
1064 | { | 1066 | { |
1065 | GNUNET_free (di); | 1067 | GNUNET_free (di); |
1066 | callback (callback_cls, NULL, NULL, NULL); | 1068 | callback (callback_cls, NULL, NULL, NULL); |
1067 | return; | 1069 | return GNUNET_SYSERR; |
1068 | } | 1070 | } |
1069 | di->dirname = GNUNET_strdup (dirName); | 1071 | di->dirname = GNUNET_strdup (dirName); |
1070 | di->priority = prio; | 1072 | di->priority = prio; |
1071 | GNUNET_DISK_directory_iterator_next (di, GNUNET_NO); | 1073 | return GNUNET_DISK_directory_iterator_next (di, GNUNET_NO); |
1072 | } | 1074 | } |
1073 | 1075 | ||
1074 | 1076 | ||