From: rikky Date: Mon, 21 Mar 2011 21:15:54 +0000 (+0000) Subject: Fix:map/csv:Fixed some warnings X-Git-Tag: navit-0.5.0.5194svn~813 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=460b463d12543112369f71e70676fd381ecf5e01;p=profile%2Fivi%2Fnavit.git Fix:map/csv:Fixed some warnings git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4382 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/map/csv/csv.c b/navit/navit/map/csv/csv.c index 29b79a6..36c4b4c 100644 --- a/navit/navit/map/csv/csv.c +++ b/navit/navit/map/csv/csv.c @@ -17,8 +17,8 @@ * Boston, MA 02110-1301, USA. */ -#include #include +#include #include #include #ifdef HAVE_UNISTD_H @@ -74,8 +74,8 @@ save_map_csv(struct map_priv *m) while(item_it) { int i; enum attr_type *at = m->attr_types; - csv_line = g_strdup_printf(""); - tmpstr = g_strdup_printf(""); + csv_line = g_strdup(""); + tmpstr = g_strdup(""); for(i=0;iattr_cnt;++i) { if(at != m->attr_types) { csv_line = g_strdup_printf("%s,",tmpstr); @@ -109,7 +109,7 @@ save_map_csv(struct map_priv *m) tmpstr = g_strdup_printf("%lf", *found_attr->u.numd); } else if(ATTR_IS_STRING(*at)) { - tmpstr = g_strdup_printf("%s", found_attr->u.str); + tmpstr = g_strdup(found_attr->u.str); } } else { //TODO handle this error @@ -124,7 +124,7 @@ save_map_csv(struct map_priv *m) ferr = 1; } item_it = g_list_next(item_it); - tmpstr=g_strdup_printf(""); + tmpstr=g_strdup(""); } if(fclose(fp)) {