[Toybox] [PATCH] arp: just use fscanf().

enh enh at google.com
Wed Sep 22 19:30:13 PDT 2021


Actually, the general get_line() -> getline() transformation isn't
necessary here. These are all small fixed-size buffers in the kernel, so
we can just use fscanf().
---
 toys/pending/arp.c | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210922/32b9ced0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-arp-just-use-fscanf.patch
Type: text/x-patch
Size: 2242 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210922/32b9ced0/attachment-0002.bin>


More information about the Toybox mailing list