From: <ri...@us...> - 2011-03-21 21:16:00
|
Revision: 4382 http://navit.svn.sourceforge.net/navit/?rev=4382&view=rev Author: rikky Date: 2011-03-21 21:15:54 +0000 (Mon, 21 Mar 2011) Log Message: ----------- Fix:map/csv:Fixed some warnings Modified Paths: -------------- trunk/navit/navit/map/csv/csv.c Modified: trunk/navit/navit/map/csv/csv.c =================================================================== --- trunk/navit/navit/map/csv/csv.c 2011-03-21 19:34:17 UTC (rev 4381) +++ trunk/navit/navit/map/csv/csv.c 2011-03-21 21:15:54 UTC (rev 4382) @@ -17,8 +17,8 @@ * Boston, MA 02110-1301, USA. */ +#include <stdlib.h> #include <glib.h> -#include <stdlib.h> #include <stdio.h> #include <string.h> #ifdef HAVE_UNISTD_H @@ -74,8 +74,8 @@ 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;i<m->attr_cnt;++i) { if(at != m->attr_types) { csv_line = g_strdup_printf("%s,",tmpstr); @@ -109,7 +109,7 @@ 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 @@ ferr = 1; } item_it = g_list_next(item_it); - tmpstr=g_strdup_printf(""); + tmpstr=g_strdup(""); } if(fclose(fp)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |