Small change for ls

Loïc Grenié loic.grenie at gmail.com
Sat Jun 16 21:16:55 UTC 2007


I've done the following for the ls applet:

1) Correct a typo in the toplevel Makefile
2) Correct a type in ls.c
3) Change the option checking: removed the
if (flags & ..._TRIGGER) all_fmt &= ..._MASK;
and changed them to a precompiled table, single &, single |.

Effect: -4bytes on .o (i386), 0 bytes on executable. Side effect:
1<<31 is available for another option if needed.

Feel free to include in the source code or to flame appropriately.

Loïc Grenié
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busy.diff
Type: text/x-patch
Size: 7585 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070616/f36dbc3b/attachment-0002.bin 


More information about the busybox mailing list