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:
parent
b579372605
commit
2657289d5c
@ -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.
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user