From bc8c54f1eedc550f9cd79abfc69db9934577aac8 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 2 Jul 2015 10:21:35 -0700 Subject: Rename enum values for taxonomy This avoids confusion and namespace collisions. Signed-off-by: Dirk Hohndel --- divesite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'divesite.c') diff --git a/divesite.c b/divesite.c index cd8ee8a7d..547b6b0dd 100644 --- a/divesite.c +++ b/divesite.c @@ -176,7 +176,7 @@ void copy_dive_site(struct dive_site *orig, struct dive_site *copy) } else { if (copy->taxonomy.category == NULL) copy->taxonomy.category = alloc_taxonomy(); - for (int i = 0; i < NR_CATEGORIES; i++) { + for (int i = 0; i < TC_NR_CATEGORIES; i++) { free((void *)copy->taxonomy.category[i].value); copy->taxonomy.category[i] = orig->taxonomy.category[i]; copy->taxonomy.category[i].value = copy_string(orig->taxonomy.category[i].value); -- cgit v1.2.3-70-g09d2