libc: malloc: match implementation to declaration

The identifiers used in the declaration and definition of a function
shall be identical [MISRAC2012-RULE_8_3-b]

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-03-27 10:49:35 -04:00
commit 841d6f3ba6

View file

@ -123,10 +123,10 @@ void free(void *ptr)
ARG_UNUSED(ptr); ARG_UNUSED(ptr);
} }
void *realloc(void *ptr, size_t requested_size) void *realloc(void *ptr, size_t size)
{ {
ARG_UNUSED(ptr); ARG_UNUSED(ptr);
return malloc(requested_size); return malloc(size);
} }
#endif #endif