[PATCH IMPROVED] size reduction for dos2unix and bugfix
Tito
farmatito at tiscali.it
Tue Mar 14 21:19:22 UTC 2006
Hi,
this patch improves size reduction of dos2unix.c.
Changes are:
1) use of mkstemp.
2) removal of code that tests if a file is already in DOS or unix
format so that it is not necessary to touch it .
3) a few minor tweaks.
4) fixes a bug in getopt_ulflags switch position that makes command line
switches do the opposite of what they are expected to do
/* -u convert to unix */
/* -d convert to dos */
5) adds the shorter license.
6) improved comments.
7) minor coding style changes.
Size reduction now is:
795 0 4 799 31f coreutils/dos2unix.o.orig
465 0 0 465 1d1 coreutils/dos2unix.o
Tested, seems to work ;-)
Please apply.
Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dos2unix_improved.patch
Type: text/x-diff
Size: 6115 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060314/7c4b58ef/attachment.bin
More information about the busybox
mailing list