1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

oneway-malloc: fix prototype for calloc

The prototype differs from stdlib
This commit is contained in:
Oleg Hahm 2014-11-11 21:49:49 +01:00
parent b579372605
commit 2657289d5c
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ void *realloc(void *ptr, size_t size);
* @param[in] cnt The other factor of the number of bytes to allocated.
* @returns The new memory block. `NULL` if the "heap" is exhausted.
*/
void *calloc(int size, size_t cnt);
void *calloc(size_t size, size_t cnt);
/**
* @brief This is a no-op.

View File

@ -60,7 +60,7 @@ void __attribute__((weak)) *realloc(void *ptr, size_t size)
}
}
void __attribute__((weak)) *calloc(int size, size_t cnt)
void __attribute__((weak)) *calloc(size_t size, size_t cnt)
{
void *mem = malloc(size * cnt);
if (mem) {