From 11407250b50cd55ae589edf759aecdd08115b05b Mon Sep 17 00:00:00 2001 From: mvglasow Date: Mon, 12 Aug 2019 22:00:20 +0200 Subject: Fix:traffic:Make Android build happy Signed-off-by: mvglasow --- navit/traffic.c | 9 +++------ 1 file 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, " \n"); - } else if (message->location->priv->txt_data) { - fprintf(f, " "); - fprintf(f, message->location->priv->txt_data); - fprintf(f, " \n"); - } + } else if (message->location->priv->txt_data) + fprintf(f, " %s\n", message->location->priv->txt_data); fprintf(f, " \n"); -- cgit v1.2.1