diff options
-rw-r--r-- | e-util/ChangeLog | 5 | ||||
-rw-r--r-- | e-util/e-pilot-map.c | 11 |
2 files changed, 10 insertions, 6 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 85ab8d4434..4ffd84412b 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -9,8 +9,9 @@ * e-mktemp.c: Use GLib API where applicable for portability. * e-error.c - * e-folder-map.c: Use e_xml_parse_file() instead of using libxml - directly. + * e-folder-map.c + * e-pilot-map.c: Use e_xml_parse_file() and e_xml_save_file() + instead of using libxml directly. * e-util-private.h (fsync) * e-util.c: Don't bother with a Win32 implementation of fsync() as diff --git a/e-util/e-pilot-map.c b/e-util/e-pilot-map.c index e155657732..533c2f3de7 100644 --- a/e-util/e-pilot-map.c +++ b/e-util/e-pilot-map.c @@ -20,13 +20,16 @@ * Boston, MA 02111-1307, USA. */ -#include "e-pilot-map.h" - -#include <string.h> /* memset(), strcmp() */ +#include <string.h> #include <stdlib.h> + #include <glib.h> #include <libxml/parser.h> +#include <libedataserver/e-xml-utils.h> + +#include "e-pilot-map.h" + typedef struct { char *uid; @@ -402,7 +405,7 @@ e_pilot_map_write (const char *filename, EPilotMap *map) /* Write the file */ xmlSetDocCompressMode (doc, 0); - ret = xmlSaveFile (filename, doc); + ret = e_xml_save_file (filename, doc); if (ret < 0) { g_warning ("Pilot map file '%s' could not be saved\n", filename); return -1; |