Rename mode2Subheaders to mode2_subheaders for consistency in context.h, data.c, close.c, read.c, and info.c

This commit is contained in:
2025-10-03 19:19:31 +01:00
parent 8c9c0c8678
commit cc56c2cc34
5 changed files with 10 additions and 11 deletions

View File

@@ -959,9 +959,9 @@ int32_t aaruf_read_sector_long(void *context, const uint64_t sector_address, boo
if(res != AARUF_STATUS_OK) return res;
if(ctx->mode2Subheaders != NULL && ctx->sectorSuffixDdt != NULL)
if(ctx->mode2_subheaders != NULL && ctx->sectorSuffixDdt != NULL)
{
memcpy(data + 16, ctx->mode2Subheaders + corrected_sector_address * 8, 8);
memcpy(data + 16, ctx->mode2_subheaders + corrected_sector_address * 8, 8);
if((ctx->sectorSuffixDdt[corrected_sector_address] & CD_XFIX_MASK) == Mode2Form1Ok)
{
@@ -981,9 +981,9 @@ int32_t aaruf_read_sector_long(void *context, const uint64_t sector_address, boo
// Mode 2 where ECC failed
memcpy(data + 24, bare_data, 2328);
}
else if(ctx->mode2Subheaders != NULL)
else if(ctx->mode2_subheaders != NULL)
{
memcpy(data + 16, ctx->mode2Subheaders + corrected_sector_address * 8, 8);
memcpy(data + 16, ctx->mode2_subheaders + corrected_sector_address * 8, 8);
memcpy(data + 24, bare_data, 2328);
}
else