Diff of /trunk/src/diff.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 155 by harbaum, Tue Mar 31 10:19:50 2009 UTC revision 156 by harbaum, Wed Apr 1 12:47:35 2009 UTC
# Line 65  static void diff_save_nodes(node_t *node Line 65  static void diff_save_nodes(node_t *node
65          char str[32];          char str[32];
66    
67          /* additional info is only required if the node hasn't been deleted */          /* additional info is only required if the node hasn't been deleted */
68          g_ascii_dtostr(str, sizeof(str), node->pos.lat);          g_ascii_formatd(str, sizeof(str), LL_FORMAT, node->pos.lat);
69          xmlNewProp(node_node, BAD_CAST "lat", BAD_CAST str);          xmlNewProp(node_node, BAD_CAST "lat", BAD_CAST str);
70          g_ascii_dtostr(str, sizeof(str), node->pos.lon);          g_ascii_formatd(str, sizeof(str), LL_FORMAT, node->pos.lon);
71          xmlNewProp(node_node, BAD_CAST "lon", BAD_CAST str);          xmlNewProp(node_node, BAD_CAST "lon", BAD_CAST str);
72          snprintf(str, sizeof(str), "%ld", node->time);          snprintf(str, sizeof(str), "%ld", node->time);
73          xmlNewProp(node_node, BAD_CAST "time", BAD_CAST str);          xmlNewProp(node_node, BAD_CAST "time", BAD_CAST str);

Legend:
Removed from v.155  
changed lines
  Added in v.156