summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/sorc_dsk.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 16:37:12 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 16:37:12 +0200
commita6bdefec8c76e9878b634119c56438a7673b0385 (patch)
tree9b435836a12773fe5b84cf1fd04866ecd9ecc2da /src/lib/formats/sorc_dsk.cpp
parent5f3d4fb33da4304e417a0e142e82e3d292646465 (diff)
more TRUE/FALSE cleanup (nw)
Diffstat (limited to 'src/lib/formats/sorc_dsk.cpp')
-rw-r--r--src/lib/formats/sorc_dsk.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/formats/sorc_dsk.cpp b/src/lib/formats/sorc_dsk.cpp
index ef99fd7ec11..7a1b734f780 100644
--- a/src/lib/formats/sorc_dsk.cpp
+++ b/src/lib/formats/sorc_dsk.cpp
@@ -35,7 +35,7 @@ static uint64_t sorc_translate_offset(floppy_image_legacy *floppy, int track, in
return 270*(16*track+sector);
}
-static floperr_t get_offset(floppy_image_legacy *floppy, int head, int track, int sector, int sector_is_index, uint64_t *offset)
+static floperr_t get_offset(floppy_image_legacy *floppy, int head, int track, int sector, bool sector_is_index, uint64_t *offset)
{
uint64_t offs;
/* translate the sector to a raw sector */
@@ -55,7 +55,7 @@ static floperr_t get_offset(floppy_image_legacy *floppy, int head, int track, in
-static floperr_t internal_sorc_read_sector(floppy_image_legacy *floppy, int head, int track, int sector, int sector_is_index, void *buffer, size_t buflen)
+static floperr_t internal_sorc_read_sector(floppy_image_legacy *floppy, int head, int track, int sector, bool sector_is_index, void *buffer, size_t buflen)
{
uint64_t offset;
floperr_t err;
@@ -69,7 +69,7 @@ static floperr_t internal_sorc_read_sector(floppy_image_legacy *floppy, int head
-static floperr_t internal_sorc_write_sector(floppy_image_legacy *floppy, int head, int track, int sector, int sector_is_index, const void *buffer, size_t buflen, int ddam)
+static floperr_t internal_sorc_write_sector(floppy_image_legacy *floppy, int head, int track, int sector, bool sector_is_index, const void *buffer, size_t buflen, int ddam)
{
uint64_t offset;
floperr_t err;
@@ -86,28 +86,28 @@ static floperr_t internal_sorc_write_sector(floppy_image_legacy *floppy, int hea
static floperr_t sorc_read_sector(floppy_image_legacy *floppy, int head, int track, int sector, void *buffer, size_t buflen)
{
- return internal_sorc_read_sector(floppy, head, track, sector, FALSE, buffer, buflen);
+ return internal_sorc_read_sector(floppy, head, track, sector, false, buffer, buflen);
}
static floperr_t sorc_write_sector(floppy_image_legacy *floppy, int head, int track, int sector, const void *buffer, size_t buflen, int ddam)
{
- return internal_sorc_write_sector(floppy, head, track, sector, FALSE, buffer, buflen, ddam);
+ return internal_sorc_write_sector(floppy, head, track, sector, false, buffer, buflen, ddam);
}
static floperr_t sorc_read_indexed_sector(floppy_image_legacy *floppy, int head, int track, int sector, void *buffer, size_t buflen)
{
- return internal_sorc_read_sector(floppy, head, track, sector, TRUE, buffer, buflen);
+ return internal_sorc_read_sector(floppy, head, track, sector, true, buffer, buflen);
}
static floperr_t sorc_write_indexed_sector(floppy_image_legacy *floppy, int head, int track, int sector, const void *buffer, size_t buflen, int ddam)
{
- return internal_sorc_write_sector(floppy, head, track, sector, TRUE, buffer, buflen, ddam);
+ return internal_sorc_write_sector(floppy, head, track, sector, true, buffer, buflen, ddam);
}
static floperr_t sorc_get_sector_length(floppy_image_legacy *floppy, int head, int track, int sector, uint32_t *sector_length)
{
floperr_t err;
- err = get_offset(floppy, head, track, sector, FALSE, nullptr);
+ err = get_offset(floppy, head, track, sector, false, nullptr);
if (err)
return err;