General refactor and cleanup.

This commit is contained in:
2024-04-30 15:51:32 +01:00
parent 80d5a532de
commit 1f813feec9
56 changed files with 2858 additions and 3104 deletions

View File

@@ -26,11 +26,11 @@
#include <aaruformat.h>
int aaruf_close(void* context)
int aaruf_close(void *context)
{
int i;
mediaTagEntry* mediaTag;
mediaTagEntry* tmpMediaTag;
mediaTagEntry *mediaTag;
mediaTagEntry *tmpMediaTag;
if(context == NULL)
{
@@ -38,7 +38,7 @@ int aaruf_close(void* context)
return -1;
}
aaruformatContext* ctx = context;
aaruformatContext *ctx = context;
// Not a libaaruformat context
if(ctx->magic != AARU_MAGIC)
@@ -77,7 +77,7 @@ int aaruf_close(void* context)
}
}
#ifdef __linux__ // TODO: Implement
#ifdef __linux__ // TODO: Implement
if(!ctx->inMemoryDdt)
{
munmap(ctx->userDataDdt, ctx->mappedMemoryDdtSize);