diff options
author | relan <relan@users.noreply.github.com> | 2012-02-20 06:15:49 +0000 |
---|---|---|
committer | relan <relan@users.noreply.github.com> | 2015-08-24 08:26:14 +0300 |
commit | ebe78a1da438fb97b5083a1c591b748403e52ab5 (patch) | |
tree | 2f68d25207cda24293acf608527c4856e1a0999d /dump | |
parent | d68b5e6ae34ecb335c4de0a9668ab31bfa084a8d (diff) | |
download | android_external_exfat-ebe78a1da438fb97b5083a1c591b748403e52ab5.tar.gz android_external_exfat-ebe78a1da438fb97b5083a1c591b748403e52ab5.tar.bz2 android_external_exfat-ebe78a1da438fb97b5083a1c591b748403e52ab5.zip |
Use exfat_read() and exfat_write() interfaces.
Diffstat (limited to 'dump')
-rw-r--r-- | dump/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dump/main.c b/dump/main.c index 3a6607a..c44d23c 100644 --- a/dump/main.c +++ b/dump/main.c @@ -80,8 +80,7 @@ static int dump_sb(const char* spec) if (fd < 0) return 1; - if (read(fd, &sb, sizeof(struct exfat_super_block)) - != sizeof(struct exfat_super_block)) + if (exfat_read(fd, &sb, sizeof(struct exfat_super_block)) < 0) { exfat_close(fd); exfat_error("failed to read from `%s'", spec); |