aboutsummaryrefslogtreecommitdiffstats
path: root/load_distro.c
AgeCommit message (Collapse)Author
2011-02-01Convert load_distro to getopt() and fopen()/fwrite()David Borman
Convert the argument processing to make use of getopt(). Switch from using open()/write() to fopen()/fwrite(). Print errors and usage statements to stderr. Add a verbose flag. Signed-off-by: David Borman <david.borman@windriver.com>
2011-02-01Major performance improvement for update_distroDavid Borman
This is a major performance improvement for the update_distro program. The old code maintained an alpabetically sorted list of file names, and eliminating duplicates as it went. But every insertion required walking back and forth down the linked list, making it very inefficient as the list grew in length. The new code just creates a simple linked list of all the file names. It then puts that list into an array, and uses qsort() to alpabatize them, and mark the duplicate names during the sorting process. It can then recreate the simple linked list in alphabetic order, dropping the duplicates as it goes. Signed-off-by: David Borman <david.borman@windriver.com>
2011-02-01Whitespace and formatting cleanupDavid Borman
Clean up whitespace issues and make the format closer to K&R. Signed-off-by: David Borman <david.borman@windriver.com>
2010-11-23Remove debugging comment.Alex deVries
2010-09-15Removing compiler warnings.Alex deVries
2010-09-15Adding better documentation.Alex deVries
Adding missing packages.h Better usage information for swabber. Small changes to load_distro.c