From ab1c37300f2a6a0215c17cd683df316d8a1e8f59 Mon Sep 17 00:00:00 2001 From: landley Date: Fri, 26 May 2006 23:44:51 +0000 Subject: Change llist_add_* to take the address of the list rather than returning the new head, and change all the callers. git-svn-id: svn://busybox.net/trunk/busybox@15199 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/getopt_ulflags.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libbb/getopt_ulflags.c') 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: if(on_off->counter) (*(on_off->counter))++; if(on_off->list_flg) { - *(llist_t **)(on_off->optarg) = - llist_add_to(*(llist_t **)(on_off->optarg), optarg); + llist_add_to((llist_t **)(on_off->optarg), optarg); } else if (on_off->optarg) { *(char **)(on_off->optarg) = optarg; } -- cgit v1.2.3-55-g6feb