aboutsummaryrefslogtreecommitdiff
path: root/editors/diff.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-15 05:40:56 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-15 05:40:56 +0000
commitd50dda8c3501af9d593cd11272a15b480864a01c (patch)
tree652da97787e8e86f876b647ca9dab4b6b64fe291 /editors/diff.c
parent873b895d50d69a45b52bef85a8a4fb190f9c89ce (diff)
downloadbusybox-w32-d50dda8c3501af9d593cd11272a15b480864a01c.tar.gz
busybox-w32-d50dda8c3501af9d593cd11272a15b480864a01c.tar.bz2
busybox-w32-d50dda8c3501af9d593cd11272a15b480864a01c.zip
*: 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
Diffstat (limited to 'editors/diff.c')
-rw-r--r--editors/diff.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/editors/diff.c b/editors/diff.c
index 4e51f6f76..26f352780 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -1289,14 +1289,9 @@ int diff_main(int argc ATTRIBUTE_UNUSED, char **argv)
1289 while (L_arg) { 1289 while (L_arg) {
1290 if (label1 && label2) 1290 if (label1 && label2)
1291 bb_show_usage(); 1291 bb_show_usage();
1292 if (!label1) 1292 if (label1) /* then label2 is NULL */
1293 label1 = L_arg->data;
1294 else { /* then label2 is NULL */
1295 label2 = label1; 1293 label2 = label1;
1296 label1 = L_arg->data; 1294 label1 = llist_pop(&L_arg);
1297 }
1298 /* we leak L_arg here... */
1299 L_arg = L_arg->link;
1300 } 1295 }
1301 1296
1302 /* 1297 /*