Changeset 3467821 in mainline
- Timestamp:
- 2012-02-24T22:59:51Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b200230
- Parents:
- 552efe3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkexfat/mkexfat.c
r552efe3 r3467821 46 46 #include <sys/types.h> 47 47 #include <sys/typefmt.h> 48 #include <bool.h> 48 49 #include "exfat.h" 49 50 #include "upcase.h" … … 436 437 unsigned long allocated_cls; 437 438 int rc = EOK; 439 bool need_reset = true; 438 440 439 441 /* Bitmap size in sectors */ … … 447 449 448 450 for (sec = 0; sec < bss; ++sec) { 449 memset(bitmap, 0, cfg->sector_size); 451 if (need_reset) { 452 need_reset = false; 453 memset(bitmap, 0, cfg->sector_size); 454 } 450 455 if (allocated_cls > 0) { 451 456 for (i = 0; i < allocated_cls; ++i) { … … 459 464 460 465 allocated_cls -= i; 466 need_reset = true; 461 467 } 462 468
Note:
See TracChangeset
for help on using the changeset viewer.