From e3304d8d7d800724cbfab352ebd783fb6722d21b Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 30 May 2019 17:49:17 +0200 Subject: [PATCH] Cleanup: use taglist_copy() instead of STRUCTURED_LIST_COPY There is a function for copying tag-lists, use that instead of the raw STRUCTURED_LIST_COPY macro-invocation. This will help in moving tag functions into their own translation unit. Signed-off-by: Berthold Stoeger --- core/dive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dive.c b/core/dive.c index 2f0e42abd..907ad40e7 100644 --- a/core/dive.c +++ b/core/dive.c @@ -614,7 +614,7 @@ static void copy_dive_nodc(const struct dive *s, struct dive *d) for (int i = 0; i < MAX_WEIGHTSYSTEMS; i++) d->weightsystem[i].description = copy_string(s->weightsystem[i].description); STRUCTURED_LIST_COPY(struct picture, s->picture_list, d->picture_list, copy_pl); - STRUCTURED_LIST_COPY(struct tag_entry, s->tag_list, d->tag_list, copy_tl); + d->tag_list = taglist_copy(s->tag_list); } void copy_dive(const struct dive *s, struct dive *d)