Re: [PATCH v5 05/11] string-list: add string_list_remove function

2017-04-18 Thread Stefan Beller
On Tue, Apr 18, 2017 at 4:36 PM, Brandon Williams wrote: > On 04/18, Stefan Beller wrote: >> On Tue, Apr 18, 2017 at 4:17 PM, Brandon Williams wrote: >> >> > >> > +void string_list_remove(struct string_list *list, const char *string, >> > + int free_util) >> > +{ >> > +

Re: [PATCH v5 05/11] string-list: add string_list_remove function

2017-04-18 Thread Brandon Williams
On 04/18, Stefan Beller wrote: > On Tue, Apr 18, 2017 at 4:17 PM, Brandon Williams wrote: > > > > > +void string_list_remove(struct string_list *list, const char *string, > > + int free_util) > > +{ > > + int exact_match; > > + int i = get_entry_index(list, strin

Re: [PATCH v5 05/11] string-list: add string_list_remove function

2017-04-18 Thread Stefan Beller
On Tue, Apr 18, 2017 at 4:17 PM, Brandon Williams wrote: > > +void string_list_remove(struct string_list *list, const char *string, > + int free_util) > +{ > + int exact_match; > + int i = get_entry_index(list, string, &exact_match); > + > + if (exact_match

[PATCH v5 05/11] string-list: add string_list_remove function

2017-04-18 Thread Brandon Williams
Teach string-list to be able to remove a string from a sorted 'struct string_list'. Signed-off-by: Brandon Williams --- string-list.c | 18 ++ string-list.h | 5 + 2 files changed, 23 insertions(+) diff --git a/string-list.c b/string-list.c index 45016ad86..8f7b69ada 100644