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;
{
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);
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");
{
exfat_pwrite(ef->dev, ef->cmap.chunk, (ef->cmap.chunk_size + 7) / 8,
exfat_c2o(ef, ef->cmap.start_cluster));
- ef->cmap.dirty = 0;
+ ef->cmap.dirty = false;
}
static void set_next_cluster(const struct exfat* ef, int contiguous,
return EXFAT_CLUSTER_END;
}
- ef->cmap.dirty = 1;
+ ef->cmap.dirty = true;
return cluster;
}
ef->cmap.size);
BMAP_CLR(ef->cmap.chunk, cluster - EXFAT_FIRST_DATA_CLUSTER);
- ef->cmap.dirty = 1;
+ ef->cmap.dirty = true;
}
static void make_noncontiguous(const struct exfat* ef, cluster_t first,
uint32_t size; /* in bits */
uint8_t* chunk;
uint32_t chunk_size; /* in bits */
- int dirty;
+ bool dirty;
}
cmap;
char label[EXFAT_ENAME_MAX * 6 + 1]; /* a character can occupy up to