Fix missing void argument declarations #678

This commit is contained in:
Joris Aerts 2016-11-04 23:05:56 +01:00
parent 9e655d33f9
commit e75b88db49
2 changed files with 7 additions and 7 deletions

View File

@ -113,7 +113,7 @@ static void debug_header( memory_header *hdr )
#endif #endif
} }
static void debug_chain() static void debug_chain( void )
{ {
memory_header *cur = heap.first; memory_header *cur = heap.first;
@ -180,7 +180,7 @@ static int verify_header( memory_header *hdr )
return( 0 ); return( 0 );
} }
static int verify_chain() static int verify_chain( void )
{ {
memory_header *prv = heap.first, *cur = heap.first->next; memory_header *prv = heap.first, *cur = heap.first->next;
@ -500,13 +500,13 @@ void mbedtls_memory_buffer_set_verify( int verify )
heap.verify = verify; heap.verify = verify;
} }
int mbedtls_memory_buffer_alloc_verify() int mbedtls_memory_buffer_alloc_verify( void )
{ {
return verify_chain(); return verify_chain();
} }
#if defined(MBEDTLS_MEMORY_DEBUG) #if defined(MBEDTLS_MEMORY_DEBUG)
void mbedtls_memory_buffer_alloc_status() void mbedtls_memory_buffer_alloc_status( void )
{ {
mbedtls_fprintf( stderr, mbedtls_fprintf( stderr,
"Current use: %zu blocks / %zu bytes, max: %zu blocks / " "Current use: %zu blocks / %zu bytes, max: %zu blocks / "
@ -600,7 +600,7 @@ void mbedtls_memory_buffer_alloc_init( unsigned char *buf, size_t len )
heap.first_free = heap.first; heap.first_free = heap.first;
} }
void mbedtls_memory_buffer_alloc_free() void mbedtls_memory_buffer_alloc_free( void )
{ {
#if defined(MBEDTLS_THREADING_C) #if defined(MBEDTLS_THREADING_C)
mbedtls_mutex_free( &heap.mutex ); mbedtls_mutex_free( &heap.mutex );
@ -620,7 +620,7 @@ static int check_pointer( void *p )
return( 0 ); return( 0 );
} }
static int check_all_free( ) static int check_all_free( void )
{ {
if( if(
#if defined(MBEDTLS_MEMORY_DEBUG) #if defined(MBEDTLS_MEMORY_DEBUG)

View File

@ -30,7 +30,7 @@
#include "mbedtls/version.h" #include "mbedtls/version.h"
#include <string.h> #include <string.h>
unsigned int mbedtls_version_get_number() unsigned int mbedtls_version_get_number( void )
{ {
return( MBEDTLS_VERSION_NUMBER ); return( MBEDTLS_VERSION_NUMBER );
} }