From 2dd6797f65b9676e06dd6faf4425d2116c90e81a Mon Sep 17 00:00:00 2001 From: jkoan Date: Sun, 25 Oct 2020 17:13:06 +0100 Subject: fix:build:core:Fix two issues where the wrong enum type is used, but both have the same value of 0 --- navit/command.c | 2 +- navit/map/binfile/binfile.c | 2 +- 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 { -- cgit v1.2.1