mirror of
https://github.com/wownero/wownero.git
synced 2026-10-25 10:28:33 +01:00
crypto: fix calloc warnings
This commit is contained in:
@@ -224,7 +224,7 @@ OAES_RET oaes_key_import_data( OAES_CTX * ctx,
|
|||||||
if( _ctx->key )
|
if( _ctx->key )
|
||||||
oaes_key_destroy( &(_ctx->key) );
|
oaes_key_destroy( &(_ctx->key) );
|
||||||
|
|
||||||
_ctx->key = (oaes_key *) calloc( sizeof( oaes_key ), 1 );
|
_ctx->key = (oaes_key *) calloc( 1, sizeof( oaes_key ) );
|
||||||
|
|
||||||
if( NULL == _ctx->key )
|
if( NULL == _ctx->key )
|
||||||
return OAES_RET_MEM;
|
return OAES_RET_MEM;
|
||||||
@@ -253,7 +253,7 @@ OAES_RET oaes_key_import_data( OAES_CTX * ctx,
|
|||||||
|
|
||||||
OAES_CTX * oaes_alloc(void)
|
OAES_CTX * oaes_alloc(void)
|
||||||
{
|
{
|
||||||
oaes_ctx * _ctx = (oaes_ctx *) calloc( sizeof( oaes_ctx ), 1 );
|
oaes_ctx * _ctx = (oaes_ctx *) calloc( 1, sizeof( oaes_ctx ) );
|
||||||
|
|
||||||
if( NULL == _ctx )
|
if( NULL == _ctx )
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user