mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Code style.
This commit is contained in:
@@ -42,7 +42,7 @@ void* open(const char* filepath)
|
|||||||
{
|
{
|
||||||
aaruformatContext* ctx;
|
aaruformatContext* ctx;
|
||||||
int errorNo;
|
int errorNo;
|
||||||
size_t readBytes;
|
size_t readBytes;
|
||||||
long pos;
|
long pos;
|
||||||
IndexHeader idxHeader;
|
IndexHeader idxHeader;
|
||||||
IndexEntry* idxEntries;
|
IndexEntry* idxEntries;
|
||||||
|
|||||||
24
src/read.c
24
src/read.c
@@ -73,12 +73,12 @@ int32_t read_sector(void* context, uint64_t sectorAddress, uint8_t* data, uint32
|
|||||||
{
|
{
|
||||||
aaruformatContext* ctx;
|
aaruformatContext* ctx;
|
||||||
uint64_t ddtEntry;
|
uint64_t ddtEntry;
|
||||||
uint32_t offsetMask;
|
uint32_t offsetMask;
|
||||||
uint64_t offset;
|
uint64_t offset;
|
||||||
uint64_t blockOffset;
|
uint64_t blockOffset;
|
||||||
BlockHeader blockHeader;
|
BlockHeader blockHeader;
|
||||||
uint8_t* block;
|
uint8_t* block;
|
||||||
size_t readBytes;
|
size_t readBytes;
|
||||||
|
|
||||||
if(context == NULL) return AARUF_ERROR_NOT_AARUFORMAT;
|
if(context == NULL) return AARUF_ERROR_NOT_AARUFORMAT;
|
||||||
|
|
||||||
@@ -175,12 +175,12 @@ int32_t read_sector_long(void* context, uint8_t* data, uint64_t sectorAddress, u
|
|||||||
{
|
{
|
||||||
aaruformatContext* ctx;
|
aaruformatContext* ctx;
|
||||||
uint32_t bareLength;
|
uint32_t bareLength;
|
||||||
uint32_t tagLength;
|
uint32_t tagLength;
|
||||||
uint8_t* bareData;
|
uint8_t* bareData;
|
||||||
int32_t res;
|
int32_t res;
|
||||||
TrackEntry trk;
|
TrackEntry trk;
|
||||||
int i;
|
int i;
|
||||||
bool trkFound;
|
bool trkFound;
|
||||||
|
|
||||||
if(context == NULL) return AARUF_ERROR_NOT_AARUFORMAT;
|
if(context == NULL) return AARUF_ERROR_NOT_AARUFORMAT;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user