[libc][newlib] format (#6104)
This commit is contained in:
parent
1c95670bef
commit
8275e90203
|
@ -6,9 +6,9 @@
|
|||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2021-02-11 Meco Man remove _gettimeofday_r() and _times_r()
|
||||
* 2020-02-13 Meco Man re-implement exit() and abort()
|
||||
* 2020-02-21 Meco Man improve and beautify syscalls
|
||||
* 2020-02-24 Meco Man fix bug of _isatty_r()
|
||||
* 2021-02-13 Meco Man re-implement exit() and abort()
|
||||
* 2021-02-21 Meco Man improve and beautify syscalls
|
||||
* 2021-02-24 Meco Man fix bug of _isatty_r()
|
||||
*/
|
||||
|
||||
#include <reent.h>
|
||||
|
@ -77,8 +77,7 @@ void _free_r (struct _reent *ptr, void *addr)
|
|||
}
|
||||
|
||||
#else
|
||||
void *
|
||||
_sbrk_r(struct _reent *ptr, ptrdiff_t incr)
|
||||
void *_sbrk_r(struct _reent *ptr, ptrdiff_t incr)
|
||||
{
|
||||
LOG_E("Please enable RT_USING_HEAP");
|
||||
RT_ASSERT(0);
|
||||
|
@ -94,7 +93,7 @@ void __libc_init_array(void)
|
|||
|
||||
/* Reentrant versions of system calls. */
|
||||
#ifndef _REENT_ONLY
|
||||
int *__errno ()
|
||||
int *__errno(void)
|
||||
{
|
||||
return _rt_errno();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue