aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-12-17 20:12:04 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-12-17 20:12:04 +0800
commit6067bff47dc1c85434f567c44ae430415a355db9 (patch)
tree80232dcdf8dafc1435dca40b66a1cddf16ed19b6 /addressbook
parent61eb0898d02426fa632fd986346f6d6b9c35d5bc (diff)
downloadgsoc2013-evolution-6067bff47dc1c85434f567c44ae430415a355db9.tar.gz
gsoc2013-evolution-6067bff47dc1c85434f567c44ae430415a355db9.tar.zst
gsoc2013-evolution-6067bff47dc1c85434f567c44ae430415a355db9.zip
Use gstdio wrappers. Use GDir API instead of dirent. Use GLib to convert
2005-12-17 Tor Lillqvist <tml@novell.com> * tools/evolution-addressbook-export-list-folders.c: Use gstdio wrappers. Use GDir API instead of dirent. Use GLib to convert file names to URIs and back. Open files in binary mode. svn path=/trunk/; revision=30802
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog3
-rw-r--r--addressbook/tools/evolution-addressbook-export-list-folders.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 42033b7a71..a16a6a3bef 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,7 +1,8 @@
2005-12-17 Tor Lillqvist <tml@novell.com>
* gui/component/addressbook-migrate.c
- * importers/evolution-vcard-importer.c: Use gstdio
+ * importers/evolution-vcard-importer.c
+ * tools/evolution-addressbook-export-list-folders.c: Use gstdio
wrappers. Use GDir API instead of dirent. Use GLib to convert file
names to URIs and back. Open files in binary mode.
diff --git a/addressbook/tools/evolution-addressbook-export-list-folders.c b/addressbook/tools/evolution-addressbook-export-list-folders.c
index 78fdca7f9f..2c6a1c6ac5 100644
--- a/addressbook/tools/evolution-addressbook-export-list-folders.c
+++ b/addressbook/tools/evolution-addressbook-export-list-folders.c
@@ -24,6 +24,7 @@
#include <config.h>
#include <glib.h>
+#include <glib/gstdio.h>
#include <bonobo-activation/bonobo-activation.h>
#include <libbonobo.h>
#include <libgnome/libgnome.h>
@@ -45,7 +46,7 @@ action_list_folders_init (ActionContext * p_actctx)
}
if (p_actctx->action_list_folders.output_file != NULL) {
- if (!(outputfile = fopen (p_actctx->action_list_folders.output_file, "w"))) {
+ if (!(outputfile = g_fopen (p_actctx->action_list_folders.output_file, "w"))) {
g_warning (_("Can not open file"));
exit (-1);
}