1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

memory_buffer_alloc_init() now returns void

This commit is contained in:
Manuel Pégourié-Gonnard
2015-04-29 01:05:19 +02:00
parent 41d479e7df
commit 69a69cc5ae
3 changed files with 3 additions and 5 deletions

View File

@ -561,7 +561,7 @@ static void buffer_alloc_free_mutexed( void *ptr )
}
#endif /* MBEDTLS_THREADING_C */
int mbedtls_memory_buffer_alloc_init( unsigned char *buf, size_t len )
void mbedtls_memory_buffer_alloc_init( unsigned char *buf, size_t len )
{
memset( &heap, 0, sizeof(buffer_alloc_ctx) );
memset( buf, 0, len );
@ -591,7 +591,6 @@ int mbedtls_memory_buffer_alloc_init( unsigned char *buf, size_t len )
heap.first->magic1 = MAGIC1;
heap.first->magic2 = MAGIC2;
heap.first_free = heap.first;
return( 0 );
}
void mbedtls_memory_buffer_alloc_free()