aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkfs_vfat.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mkfs_vfat.c')
-rw-r--r--util-linux/mkfs_vfat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c
index de88a7443..e794b3145 100644
--- a/util-linux/mkfs_vfat.c
+++ b/util-linux/mkfs_vfat.c
@@ -471,7 +471,8 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv)
471 strcpy(boot_blk->boot_jump, "\xeb\x58\x90" "mkdosfs"); // system_id[8] included :) 471 strcpy(boot_blk->boot_jump, "\xeb\x58\x90" "mkdosfs"); // system_id[8] included :)
472 STORE_LE(boot_blk->bytes_per_sect, bytes_per_sect); 472 STORE_LE(boot_blk->bytes_per_sect, bytes_per_sect);
473 STORE_LE(boot_blk->sect_per_clust, sect_per_clust); 473 STORE_LE(boot_blk->sect_per_clust, sect_per_clust);
474 STORE_LE(boot_blk->reserved_sect, reserved_sect); 474 // cast in needed on big endian to suppress a warning
475 STORE_LE(boot_blk->reserved_sect, (uint16_t)reserved_sect);
475 STORE_LE(boot_blk->fats, 2); 476 STORE_LE(boot_blk->fats, 2);
476 //STORE_LE(boot_blk->dir_entries, 0); // for FAT32, stays 0 477 //STORE_LE(boot_blk->dir_entries, 0); // for FAT32, stays 0
477 if (volume_size_sect <= 0xffff) 478 if (volume_size_sect <= 0xffff)