From d50dda8c3501af9d593cd11272a15b480864a01c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 15 Jun 2008 05:40:56 +0000 Subject: *: use llist_pop for traverse-and-free list operation function old new delta append_file_list_to_list 109 111 +2 udhcpc_main 2414 2413 -1 run_parts_main 325 324 -1 od_main 2324 2323 -1 getopt_main 709 707 -2 env_main 253 251 -2 sed_main 659 656 -3 ps_main 522 519 -3 traceroute_main 3960 3954 -6 sort_main 844 838 -6 diff_main 866 858 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/10 up/down: 2/-33) Total: -31 bytes --- util-linux/getopt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util-linux') diff --git a/util-linux/getopt.c b/util-linux/getopt.c index 31790d2a7..e3b4ca625 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c @@ -329,8 +329,7 @@ int getopt_main(int argc, char **argv) &optstr, &name, &s_arg, &l_arg); /* Effectuate the read options for the applet itself */ while (l_arg) { - long_options = add_long_options(long_options, l_arg->data); - l_arg = l_arg->link; + long_options = add_long_options(long_options, llist_pop(&l_arg)); } #endif -- cgit v1.2.3