aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 9d1cb3c..2c1be74 100644
--- a/main.c
+++ b/main.c
@@ -116,7 +116,7 @@ int main(int argc, char *argv[])
init_fs(&sb);
- file = (struct open_file_t *)ext2_open(filename);
+ file = (struct open_file_t *)open_file(filename);
if ( ! file ) {
printf("open file error: file %s not found ....\n", filename);
close(fd);
@@ -128,7 +128,7 @@ int main(int argc, char *argv[])
* going well.
*/
do {
- bytes_read = ext2_read(file, buf, 1024, &have_more);
+ bytes_read = read_file(file, buf, 1024, &have_more);
printf("--------read %d bytes-------\n", bytes_read);
printf("----------------\n");
print_hex(buf, bytes_read);