[Toybox] [PATCH] md5sum.c: simplify the table setup slightly.

enh enh at google.com
Tue Jun 8 12:37:14 PDT 2021

I don't think it was wrong before, but the strchr() in particular left
me scratching my head. This formulation is slightly cheaper and seems
more obviously correct.

(Unrelated but nearby, I don't understand why anyone would ever want to
calculate these tables at runtime, so this seems like another
unnecessary CFG_TOYBOX_FLOAT to me, though an unusual one where we might
want to _remove_ the floating-point code.)
 toys/lsb/md5sum.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210608/e537a276/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-md5sum.c-simplify-the-table-setup-slightly.patch
Type: text/x-patch
Size: 1559 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210608/e537a276/attachment.bin>

More information about the Toybox mailing list