Change llist_add_* to take the address of the list rather than returning the new
head, and change all the callers.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user