summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2021-03-29 23:57:53 +0300
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2021-03-29 23:57:53 +0300
commitc07be5da381a67b8c4ffd55866116b73bcaba06c (patch)
tree9232f217e02cfe83d7305a27f454c9f2817a3693 /src
parenta84c0f57b5efde85c195cbc706715bf4a4116018 (diff)
downloadalgos-ld1-1.0.1.tar.gz
algos-ld1-1.0.1.tar.bz2
algos-ld1-1.0.1.zip
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src')
-rw-r--r--src/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream.c b/src/stream.c
index 48f7e4c..75f2c04 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -107,7 +107,7 @@ struct entry_l *file_get_array(struct stream * const in, struct entry_l * const
if (in->index < in->n) {
do {
- try(0 > (bytes_read = pread(in->fd, &ent, sizeof(ent), in->index * in->settings->stride)), err, NULL, "Writing to stream failed with %i", errno);
+ try(0 > (bytes_read = pread(in->fd, &ent, sizeof(ent), in->index * in->settings->stride)), err, NULL, "Reading from stream failed with %i", errno);
} while (bytes_read != sizeof(ent));
++in->index;
@@ -127,7 +127,7 @@ struct entry_l *file_get_list(struct stream * const in, struct entry_l * const s
if (in->cnode) {
do {
- try(0 > (bytes_read = pread(in->fd, &ent, sizeof(ent), in->cnode->file_offset)), err, NULL, "Writing to stream failed with %i", errno);
+ try(0 > (bytes_read = pread(in->fd, &ent, sizeof(ent), in->cnode->file_offset)), err, NULL, "Reading from stream failed with %i", errno);
} while (bytes_read != sizeof(ent));
store->val = ent.val;