diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-14 14:16:46 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-14 14:16:46 +0000 |
commit | dbaf8fc3075e00b95eaf8ced5a5d07d59ed61ca5 (patch) | |
tree | fb7108491625fcc61fdad42ceda6f6deb2f12473 /src/fs/fs_file_information.c | |
parent | 264f8f3241199d433253b26837d10cf61d9b06fe (diff) | |
download | gnunet-dbaf8fc3075e00b95eaf8ced5a5d07d59ed61ca5.tar.gz gnunet-dbaf8fc3075e00b95eaf8ced5a5d07d59ed61ca5.zip |
-more complete fix for #3034
Diffstat (limited to 'src/fs/fs_file_information.c')
-rw-r--r-- | src/fs/fs_file_information.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_file_information.c b/src/fs/fs_file_information.c index da4e85b78..b1ec1ed5d 100644 --- a/src/fs/fs_file_information.c +++ b/src/fs/fs_file_information.c | |||
@@ -123,7 +123,7 @@ GNUNET_FS_file_information_create_from_file (struct GNUNET_FS_Handle *h, | |||
123 | return NULL; | 123 | return NULL; |
124 | } | 124 | } |
125 | fi = GNUNET_FS_make_file_reader_context_ (filename); | 125 | fi = GNUNET_FS_make_file_reader_context_ (filename); |
126 | if (fi == NULL) | 126 | if (NULL == fi) |
127 | { | 127 | { |
128 | GNUNET_break (0); | 128 | GNUNET_break (0); |
129 | return NULL; | 129 | return NULL; |
@@ -261,7 +261,7 @@ GNUNET_FS_file_information_create_from_reader (struct GNUNET_FS_Handle *h, | |||
261 | * Test if a given entry represents a directory. | 261 | * Test if a given entry represents a directory. |
262 | * | 262 | * |
263 | * @param ent check if this FI represents a directory | 263 | * @param ent check if this FI represents a directory |
264 | * @return GNUNET_YES if so, GNUNET_NO if not | 264 | * @return #GNUNET_YES if so, #GNUNET_NO if not |
265 | */ | 265 | */ |
266 | int | 266 | int |
267 | GNUNET_FS_file_information_is_directory (const struct GNUNET_FS_FileInformation | 267 | GNUNET_FS_file_information_is_directory (const struct GNUNET_FS_FileInformation |
@@ -409,7 +409,7 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
409 | int no; | 409 | int no; |
410 | 410 | ||
411 | no = GNUNET_NO; | 411 | no = GNUNET_NO; |
412 | if (fi->is_directory == GNUNET_YES) | 412 | if (GNUNET_YES == fi->is_directory) |
413 | { | 413 | { |
414 | /* clean up directory */ | 414 | /* clean up directory */ |
415 | while (NULL != (pos = fi->data.dir.entries)) | 415 | while (NULL != (pos = fi->data.dir.entries)) |