From 8d9f495d68664017e0b87f2c0c2d0eae9f3c4836 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 8 Apr 2007 15:08:42 +0000 Subject: getopt32: fix llist_t options ordering. llist_rev is not unused. function old new delta tar_main 705 695 -10 sort_main 928 918 -10 decode_format_string 886 876 -10 run_parts_main 197 185 -12 ps_main 513 500 -13 wget_main 2764 2750 -14 awk_main 1014 1000 -14 od_main 2886 2866 -20 llist_rev 25 - -25 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/8 up/down: 0/-128) Total: -128 bytes --- archival/tar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'archival') diff --git a/archival/tar.c b/archival/tar.c index 6552d6c57..f2f1ccd06 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -864,10 +864,9 @@ int tar_main(int argc, char **argv) char *cp = last_char_is(argv[optind], '/'); if (cp > argv[optind]) *cp = '\0'; - llist_add_to(&tar_handle->accept, argv[optind]); + llist_add_to_end(&tar_handle->accept, argv[optind]); optind++; } - tar_handle->accept = llist_rev(tar_handle->accept); if (tar_handle->accept || tar_handle->reject) tar_handle->filter = filter_accept_reject_list; -- cgit v1.2.3