diff options
author | mvglasow <michael -at- vonglasow.com> | 2019-08-12 22:00:20 +0200 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2019-08-12 22:00:20 +0200 |
commit | 11407250b50cd55ae589edf759aecdd08115b05b (patch) | |
tree | 81c35b7fccb8f2a39ffd418d75331903428ccd2c | |
parent | da02e7e4d98da8ec941e4ff6b05911e3f4326426 (diff) | |
download | navit-11407250b50cd55ae589edf759aecdd08115b05b.tar.gz |
Fix:traffic:Make Android build happy
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r-- | navit/traffic.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/navit/traffic.c b/navit/traffic.c index b27e61022..2a422e9c1 100644 --- a/navit/traffic.c +++ b/navit/traffic.c @@ -762,7 +762,7 @@ static void tm_item_dump_to_file(struct item * item, FILE * f) { while (*attrs) { if ((*attrs)->type == attr_flags) { /* special handling for flags */ - fprintf(f, " flags=0x%x", (*attrs)->u.num); + fprintf(f, " flags=0x%x", (unsigned int)(*attrs)->u.num); } else { attr_text = attr_to_text(*attrs, NULL, 0); /* FIXME this may not work properly for all attribute types */ @@ -4214,11 +4214,8 @@ static void traffic_dump_messages_to_xml(struct traffic_shared_priv * shared) { tm_item_dump_to_file(*curr, f); } fprintf(f, " </navit_items>\n"); - } else if (message->location->priv->txt_data) { - fprintf(f, " <navit_items>"); - fprintf(f, message->location->priv->txt_data); - fprintf(f, " </navit_items>\n"); - } + } else if (message->location->priv->txt_data) + fprintf(f, " <navit_items>%s</navit_items>\n", message->location->priv->txt_data); fprintf(f, " </location>\n"); |