diff options
Diffstat (limited to 'taxonomy.c')
-rw-r--r-- | taxonomy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/taxonomy.c b/taxonomy.c index 2c101962a..2b71648c1 100644 --- a/taxonomy.c +++ b/taxonomy.c @@ -2,7 +2,7 @@ #include "gettext.h" #include <stdlib.h> -char *taxonomy_category_names[NR_CATEGORIES] = { +char *taxonomy_category_names[TC_NR_CATEGORIES] = { QT_TRANSLATE_NOOP("getTextFromC", "None"), QT_TRANSLATE_NOOP("getTextFromC", "Ocean"), QT_TRANSLATE_NOOP("getTextFromC", "Country"), @@ -12,7 +12,7 @@ char *taxonomy_category_names[NR_CATEGORIES] = { }; // these are the names for geoname.org -char *taxonomy_api_names[NR_CATEGORIES] = { +char *taxonomy_api_names[TC_NR_CATEGORIES] = { "none", "name", "countryName", @@ -23,13 +23,13 @@ char *taxonomy_api_names[NR_CATEGORIES] = { struct taxonomy *alloc_taxonomy() { - return calloc(NR_CATEGORIES, sizeof(struct taxonomy)); + return calloc(TC_NR_CATEGORIES, sizeof(struct taxonomy)); } void free_taxonomy(struct taxonomy *t) { if (t) { - for (int i = 0; i < NR_CATEGORIES; i++) + for (int i = 0; i < TC_NR_CATEGORIES; i++) free((void *)t[i].value); free(t); } |