aboutsummaryrefslogtreecommitdiffstats
path: root/dump
diff options
context:
space:
mode:
authorrelan <relan@users.noreply.github.com>2011-04-22 19:27:00 +0000
committerrelan <relan@users.noreply.github.com>2015-08-24 08:26:13 +0300
commit49aecac93a146bec8d8188ffb1017bc20de8c4ed (patch)
tree53698e9ab2645303b91651e4bd5f327dc1e55fb1 /dump
parent017ad988422ec1e75808b035b6e9679d44716188 (diff)
downloadandroid_external_exfat-49aecac93a146bec8d8188ffb1017bc20de8c4ed.tar.gz
android_external_exfat-49aecac93a146bec8d8188ffb1017bc20de8c4ed.tar.bz2
android_external_exfat-49aecac93a146bec8d8188ffb1017bc20de8c4ed.zip
Use exfat_open() instead of calling open() directly.
Diffstat (limited to 'dump')
-rw-r--r--dump/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/dump/main.c b/dump/main.c
index 98bfe4f..357557d 100644
--- a/dump/main.c
+++ b/dump/main.c
@@ -76,12 +76,10 @@ static int dump_sb(const char* spec)
int fd;
struct exfat_super_block sb;
- fd = open(spec, O_RDONLY);
+ fd = exfat_open(spec, 1);
if (fd < 0)
- {
- exfat_error("failed to open `%s'", spec);
return 1;
- }
+
if (read(fd, &sb, sizeof(struct exfat_super_block))
!= sizeof(struct exfat_super_block))
{