diff options
author | Rob Landley <rob@landley.net> | 2006-05-26 23:44:51 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-26 23:44:51 +0000 |
commit | 8bb50782a5f0dd955a6fe18d381eb9322d1447e7 (patch) | |
tree | b717c772c6fef53c34b723341a8c5b12ccb57902 /libbb/getopt_ulflags.c | |
parent | 5edc10275ec86f6ce6af97a8e2e5eeccb3a2e8cb (diff) | |
download | busybox-w32-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.tar.gz busybox-w32-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.tar.bz2 busybox-w32-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.zip |
Change llist_add_* to take the address of the list rather than returning the new
head, and change all the callers.
Diffstat (limited to 'libbb/getopt_ulflags.c')
-rw-r--r-- | libbb/getopt_ulflags.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c index 76bdeed75..dc40095ee 100644 --- a/libbb/getopt_ulflags.c +++ b/libbb/getopt_ulflags.c | |||
@@ -474,8 +474,7 @@ loop_arg_is_opt: | |||
474 | if(on_off->counter) | 474 | if(on_off->counter) |
475 | (*(on_off->counter))++; | 475 | (*(on_off->counter))++; |
476 | if(on_off->list_flg) { | 476 | if(on_off->list_flg) { |
477 | *(llist_t **)(on_off->optarg) = | 477 | llist_add_to((llist_t **)(on_off->optarg), optarg); |
478 | llist_add_to(*(llist_t **)(on_off->optarg), optarg); | ||
479 | } else if (on_off->optarg) { | 478 | } else if (on_off->optarg) { |
480 | *(char **)(on_off->optarg) = optarg; | 479 | *(char **)(on_off->optarg) = optarg; |
481 | } | 480 | } |