Skip to content

Commit

Permalink
memory: fix types in wc_LoadStaticMemory_ex()
Browse files Browse the repository at this point in the history
  • Loading branch information
rizlik committed Oct 28, 2024
1 parent bdd6231 commit 48b36da
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions wolfcrypt/src/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ static int wc_init_memory_heap(WOLFSSL_HEAP* heap, unsigned int listSz,
}

int wc_LoadStaticMemory_ex(WOLFSSL_HEAP_HINT** pHint,
unsigned int listSz, const unsigned int* sizeList,
const unsigned int* distList, unsigned char* buf,
unsigned int listSz, const word32* sizeList,
const word32* distList, unsigned char* buf,
unsigned int sz, int flag, int maxSz)
{
WOLFSSL_HEAP* heap = NULL;
Expand Down Expand Up @@ -773,13 +773,8 @@ int wc_LoadStaticMemory_ex(WOLFSSL_HEAP_HINT** pHint,
int wc_LoadStaticMemory(WOLFSSL_HEAP_HINT** pHint,
unsigned char* buf, unsigned int sz, int flag, int maxSz)
{
#ifdef WOLFSSL_LEAN_STATIC_PSK
word16 sizeList[WOLFMEM_DEF_BUCKETS] = { WOLFMEM_BUCKETS };
byte distList[WOLFMEM_DEF_BUCKETS] = { WOLFMEM_DIST };
#else
word32 sizeList[WOLFMEM_DEF_BUCKETS] = { WOLFMEM_BUCKETS };
word32 distList[WOLFMEM_DEF_BUCKETS] = { WOLFMEM_DIST };
#endif
int ret = 0;

WOLFSSL_ENTER("wc_LoadStaticMemory");
Expand Down

0 comments on commit 48b36da

Please sign in to comment.