diff options
author | relan <relan@users.noreply.github.com> | 2012-12-12 19:16:42 +0000 |
---|---|---|
committer | relan <relan@users.noreply.github.com> | 2015-08-24 08:26:15 +0300 |
commit | 572ac771155b37563f1e891716c027f6d8b26ff0 (patch) | |
tree | a5fbaafd67531308137e3375fd9b72ee5ff277cd /dump | |
parent | ff8e081b390996f396a937bfc628756ecfd8e835 (diff) | |
download | android_external_exfat-572ac771155b37563f1e891716c027f6d8b26ff0.tar.gz android_external_exfat-572ac771155b37563f1e891716c027f6d8b26ff0.tar.bz2 android_external_exfat-572ac771155b37563f1e891716c027f6d8b26ff0.zip |
Use bool type.
Diffstat (limited to 'dump')
-rw-r--r-- | dump/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dump/main.c b/dump/main.c index 07c8b05..d7ea2a3 100644 --- a/dump/main.c +++ b/dump/main.c @@ -112,7 +112,7 @@ static void dump_sectors(struct exfat* ef) puts(""); } -static int dump_full(const char* spec, int used_sectors) +static int dump_full(const char* spec, bool used_sectors) { struct exfat ef; uint32_t free_clusters; @@ -148,8 +148,8 @@ int main(int argc, char* argv[]) { char** pp; const char* spec = NULL; - int sb_only = 0; - int used_sectors = 0; + bool sb_only = false; + bool used_sectors = false; printf("dumpexfat %u.%u.%u\n", EXFAT_VERSION_MAJOR, EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH); @@ -157,9 +157,9 @@ int main(int argc, char* argv[]) for (pp = argv + 1; *pp; pp++) { if (strcmp(*pp, "-s") == 0) - sb_only = 1; + sb_only = true; else if (strcmp(*pp, "-u") == 0) - used_sectors = 1; + used_sectors = true; else if (strcmp(*pp, "-v") == 0) { puts("Copyright (C) 2011, 2012 Andrew Nayenko"); |