summaryrefslogtreecommitdiffstats
path: root/src/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cache.c b/src/cache.c
index fe97fef..0c99322 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -35,8 +35,8 @@ int cache_populate(struct stream * const in)
try(in->settings->access != cached, err, EINVAL, "cannot populate cache: stream is uncached");
- /* if reading a chardev, fall back to the one-element-at-a-time mode */
- if (in->type == stream_chardev) {
+ /* if reading a a randstream, fall back to the one-element-at-a-time mode */
+ if (in->type == stream_randread) {
for (i = 0; i < in->n && !ret; ++i) {
errno = 0;
tmp = in->get_next_element_direct(in);