summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 7c10da4..d82b0d6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -78,7 +78,8 @@ int main(int argc, char **argv)
try_s((ret = cache_transfer(&file_tmp, &file_out)), out);
}
} else { /* uncached */
- /* TODO */
+ bench(&file_in, &file_tmp);
+ file_transfer(&file_tmp, &file_out);
}
stream_close(&file_in);
@@ -235,7 +236,11 @@ static int load_io_functions(struct settings const * const s, struct stream * co
}
}
} else {
- ret = ENOSYS;
+ if (s->format == array) {
+ in->get = file_get_array;
+ in->put = file_put_array;
+ in->copy = stream_copy_range;
+ }
}
return ret;