aboutsummaryrefslogtreecommitdiff
path: root/toys/cmp.c
AgeCommit message (Collapse)Author
2012-02-07More cmp.c shrinkage.Rob Landley
Abuse loopfiles() to handle both arguments, caching the first pass in globals. That eliminates get_fd() since loopfiles already knows how to handle "-" arg. Chop toybuf in half and use half for each file, eliminating malloc/free. main() becomes just a call to loopfiles(), which does all open/close.
2012-02-07Iterative cleanups on cmp.c: silence warnings, only free if TOYBOX_FREE, use ↵Rob Landley
xopen(), style cleanup on curly brackets.
2012-02-06Implement cmpTimothy Elliott