[Toybox] [PATCH] pmap: cleanup.

enh enh at google.com
Sat Sep 25 18:44:30 PDT 2021


Remove unbounded scanfs. Also reduce the amount of allocation and
freeing by reusing the getline() buffer.

Correct syntax in help. Improve error messages.

Implement -p.

Use FLAG() and simplify implementation slightly.
---
 toys/other/pmap.c | 118 +++++++++++++++++++++-------------------------
 1 file changed, 54 insertions(+), 64 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210925/ff8352a6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pmap-cleanup.patch
Type: text/x-patch
Size: 5948 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210925/ff8352a6/attachment.bin>


More information about the Toybox mailing list