fdisk change to convert to globals

Garrett Kajmowicz gkajmowi at tbaytel.net
Sat Feb 25 03:17:57 UTC 2006


Up until now, fdisk used 4 flags to keep track of what type of partition table 
it was accessing.  This is just dumb.  These are mutually exclusive.  As 
such, and single enum is sufficient to hold which type of partition table we 
are editing.

The over text size of the code goes up, line count and binary size go down.


-     Garrett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdisk_to_enum.patch
Type: text/x-diff
Size: 20192 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060224/c85379e5/attachment.bin 


More information about the busybox mailing list