[riot-notifications] [RIOT-OS/RIOT] tests/malloc: cleanup (#12216)

benpicco notifications at github.com
Fri Sep 13 00:41:16 CEST 2019


### Contribution description

When looking at the old malloc test, some cosmetic improvements come to mind:

- make local functions / variables static
- adhere to the 80 column limit
- don't increment total if head could not be allocated
- allow to overwrite CHUNK_SIZE

The functionality remains the same.

### Testing procedure

Run `tests/malloc`


### Issues/PRs references
none

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/12216

-- Commit Summary --

  * tests/malloc: cleanup

-- File Changes --

    M tests/malloc/main.c (18)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/12216.patch
https://github.com/RIOT-OS/RIOT/pull/12216.diff

-- 
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/12216
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190912/06a09b64/attachment.htm>


More information about the notifications mailing list