1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #18558 from benpicco/_sbrk_r-comment

sys/syscalls: drop outdated comment on _sbrk_r()
This commit is contained in:
benpicco 2022-09-06 14:23:02 +02:00 committed by GitHub
commit d43318f90d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,15 +175,12 @@ __attribute__((used)) void _exit(int n)
{
LOG_INFO("#! exit %i: powering off\n", n);
pm_off();
while(1);
while (1) {}
}
/**
* @brief Allocate memory from the heap.
*
* The current heap implementation is very rudimentary, it is only able to allocate
* memory. But it does not have any means to free memory again
*
* @return pointer to the newly allocated memory on success
* @return pointer set to address `-1` on failure
*/
@ -606,7 +603,7 @@ int _isatty_r(struct _reent *r, int fd)
{
r->_errno = 0;
if(fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) {
if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) {
return 1;
}