summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjkoan <jkoan@gmx.de>2020-10-25 17:13:06 +0100
committerjkoan <jkoan@users.noreply.github.com>2020-10-31 14:26:45 +0100
commit12478f599efa93ae70deeedf0049e261d5d766ec (patch)
treea539dfbdc81d9ca05bb4fc089c02328996adaebf
parent6819fe255df971f78e8a011b6374f1e9c7740d25 (diff)
downloadnavit-12478f599efa93ae70deeedf0049e261d5d766ec.tar.gz
fix:build:core:Fix two issues where the wrong enum type is used, but
both have the same value of 0
-rw-r--r--navit/command.c2
-rw-r--r--navit/map/binfile/binfile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/navit/command.c b/navit/command.c
index cc498b1a7..f2c6c0bb0 100644
--- a/navit/command.c
+++ b/navit/command.c
@@ -158,7 +158,7 @@ static void result_free(struct result *res) {
attr_free_content(&res->attr);
res->allocated=0;
} else {
- res->attr.type=type_none;
+ res->attr.type=attr_none;
res->attr.u.data=NULL;
}
}
diff --git a/navit/map/binfile/binfile.c b/navit/map/binfile/binfile.c
index 6108154b6..ab65dcaf5 100644
--- a/navit/map/binfile/binfile.c
+++ b/navit/map/binfile/binfile.c
@@ -565,7 +565,7 @@ static int binfile_attr_get(void *priv_data, enum attr_type attr_type, struct at
size_rem-=subsize+1;
i++;
}
- mr->attrs[i].type=type_none;
+ mr->attrs[i].type=attr_none;
mr->attrs[i].u.data=NULL;
attr->u.attrs=mr->attrs;
} else {