aboutsummaryrefslogtreecommitdiffstats
path: root/dump
diff options
context:
space:
mode:
authorrelan <relan@users.noreply.github.com>2012-02-14 17:53:17 +0000
committerrelan <relan@users.noreply.github.com>2015-08-24 08:26:14 +0300
commit7cd770540a994b0eaee1d620694647f6271bec28 (patch)
tree6620dfe9887bdd332de83aed3fc850acc1dbb8db /dump
parent0c71f0a06cadfec07ffa1b4afd2643555e959aa0 (diff)
downloadandroid_external_exfat-7cd770540a994b0eaee1d620694647f6271bec28.tar.gz
android_external_exfat-7cd770540a994b0eaee1d620694647f6271bec28.tar.bz2
android_external_exfat-7cd770540a994b0eaee1d620694647f6271bec28.zip
Add exfat_close() function.
It closes the device descriptor.
Diffstat (limited to 'dump')
-rw-r--r--dump/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dump/main.c b/dump/main.c
index 357557d..3a6607a 100644
--- a/dump/main.c
+++ b/dump/main.c
@@ -83,13 +83,13 @@ static int dump_sb(const char* spec)
if (read(fd, &sb, sizeof(struct exfat_super_block))
!= sizeof(struct exfat_super_block))
{
- close(fd);
+ exfat_close(fd);
exfat_error("failed to read from `%s'", spec);
return 1;
}
if (memcmp(sb.oem_name, "EXFAT ", sizeof(sb.oem_name)) != 0)
{
- close(fd);
+ exfat_close(fd);
exfat_error("exFAT file system is not found on `%s'", spec);
return 1;
}
@@ -99,7 +99,7 @@ static int dump_sb(const char* spec)
print_cluster_info(&sb);
print_other_info(&sb);
- close(fd);
+ exfat_close(fd);
return 0;
}