[riot-notifications] [RIOT-OS/RIOT] sys/oneway-malloc: export oneway_malloc() (#15474)
Marian Buschsieweke
notifications at github.com
Thu Nov 19 20:46:17 CET 2020
@maribu approved this pull request.
ACK. Pretty simple change and `oneway_malloc()` is indeed a bit easier to use than `sbrk()` directly.
> {
if (size != 0) {
void *ptr = sbrk(size);
- DEBUG("malloc(): allocating block of size %u at %p.\n", (unsigned int) size, ptr);
+ DEBUG("malloc(): allocating block of size %u at %p.\n",
+ (unsigned int) size, ptr);
```suggestion
(unsigned int)size, ptr);
```
> {
if (size != 0) {
void *ptr = sbrk(size);
- DEBUG("malloc(): allocating block of size %u at %p.\n", (unsigned int) size, ptr);
+ DEBUG("malloc(): allocating block of size %u at %p.\n",
+ (unsigned int) size, ptr);
if (ptr != (void*) -1) {
```suggestion
if (ptr != (void *)-1) {
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15474#pullrequestreview-534776911
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201119/b9a63110/attachment.htm>
More information about the notifications
mailing list