summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson.build2
-rw-r--r--src/stream.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 0b23a41..56b8953 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,7 @@ project('algos ld1', 'c',
license : 'LGPL2.1',
default_options : ['c_std=gnu11', 'optimization=3', 'b_lto=true', 'debug=false', 'warning_level=3'])
-deps = [dependency('rin', version : '>= 0.0.4')]
+deps = [dependency('rin', version : '>= 0.0.5')]
progname = 'alg'
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;