diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-07-25 08:49:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-07-25 08:49:21 +0000 |
commit | 54e489bb761d92d10dea3150e1e236abc1f80c35 (patch) | |
tree | 4724a411e7e094e7bf0215225ea1d41d7beb9365 /src/fs | |
parent | e60a9052ae5d2211611e27f4ba86026e4dd1ccd6 (diff) | |
download | gnunet-54e489bb761d92d10dea3150e1e236abc1f80c35.tar.gz gnunet-54e489bb761d92d10dea3150e1e236abc1f80c35.zip |
-ignorerv
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/fs_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index f31d8116d..e0ceb4c57 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c | |||
@@ -493,9 +493,9 @@ GNUNET_FS_data_reader_file_ (void *cls, uint64_t offset, size_t max, void *buf, | |||
493 | return 0; | 493 | return 0; |
494 | } | 494 | } |
495 | } | 495 | } |
496 | GNUNET_DISK_file_seek (fi->fd, offset, GNUNET_DISK_SEEK_SET); | 496 | if ( (GNUNET_SYSERR == |
497 | ret = GNUNET_DISK_file_read (fi->fd, buf, max); | 497 | GNUNET_DISK_file_seek (fi->fd, offset, GNUNET_DISK_SEEK_SET)) || |
498 | if (-1 == ret) | 498 | (-1 == (ret = GNUNET_DISK_file_read (fi->fd, buf, max))) ) |
499 | { | 499 | { |
500 | GNUNET_asprintf (emsg, _("Could not read file `%s': %s"), fi->filename, | 500 | GNUNET_asprintf (emsg, _("Could not read file `%s': %s"), fi->filename, |
501 | STRERROR (errno)); | 501 | STRERROR (errno)); |