summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/thom_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/thom_dsk.cpp
parent5f3d4fb33da4304e417a0e142e82e3d292646465 (diff)
more TRUE/FALSE cleanup (nw)
Diffstat (limited to 'src/lib/formats/thom_dsk.cpp')
-rw-r--r--src/lib/formats/thom_dsk.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/formats/thom_dsk.cpp b/src/lib/formats/thom_dsk.cpp
index 6249d785705..a7c5cc6d433 100644
--- a/src/lib/formats/thom_dsk.cpp
+++ b/src/lib/formats/thom_dsk.cpp
@@ -79,7 +79,7 @@ static int sap_get_tracks_per_disk(floppy_image_legacy *floppy)
}
-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;
struct sap_dsk_tag *tag = get_tag(floppy);
@@ -104,7 +104,7 @@ static floperr_t get_offset(floppy_image_legacy *floppy, int head, int track, in
-static floperr_t internal_sap_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_sap_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;
@@ -124,7 +124,7 @@ static floperr_t internal_sap_read_sector(floppy_image_legacy *floppy, int head,
-static floperr_t internal_sap_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_sap_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;
@@ -154,28 +154,28 @@ static floperr_t internal_sap_write_sector(floppy_image_legacy *floppy, int head
static floperr_t sap_read_sector(floppy_image_legacy *floppy, int head, int track, int sector, void *buffer, size_t buflen)
{
- return internal_sap_read_sector(floppy, head, track, sector, FALSE, buffer, buflen);
+ return internal_sap_read_sector(floppy, head, track, sector, false, buffer, buflen);
}
static floperr_t sap_write_sector(floppy_image_legacy *floppy, int head, int track, int sector, const void *buffer, size_t buflen, int ddam)
{
- return internal_sap_write_sector(floppy, head, track, sector, FALSE, buffer, buflen, ddam);
+ return internal_sap_write_sector(floppy, head, track, sector, false, buffer, buflen, ddam);
}
static floperr_t sap_read_indexed_sector(floppy_image_legacy *floppy, int head, int track, int sector, void *buffer, size_t buflen)
{
- return internal_sap_read_sector(floppy, head, track, sector, TRUE, buffer, buflen);
+ return internal_sap_read_sector(floppy, head, track, sector, true, buffer, buflen);
}
static floperr_t sap_write_indexed_sector(floppy_image_legacy *floppy, int head, int track, int sector, const void *buffer, size_t buflen, int ddam)
{
- return internal_sap_write_sector(floppy, head, track, sector, TRUE, buffer, buflen, ddam);
+ return internal_sap_write_sector(floppy, head, track, sector, true, buffer, buflen, ddam);
}
static floperr_t sap_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;
@@ -193,7 +193,7 @@ static floperr_t sap_get_indexed_sector_info(floppy_image_legacy *floppy, int he
uint8_t header[4];
uint64_t offset = 0;
sector_index += 1;
- err = get_offset(floppy, head, track, sector_index, FALSE, &offset);
+ err = get_offset(floppy, head, track, sector_index, false, &offset);
floppy_image_read(floppy, header, offset, 4);
if (cylinder)