diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-27 23:13:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 00:13:23 +0800 |
commit | fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch) | |
tree | ae78be371695c3dc18847b87d3f014f985aa3a40 /mail/importers/pine-importer.c | |
parent | 6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff) | |
download | gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip |
Prefer GLib basic types over C types.
Diffstat (limited to 'mail/importers/pine-importer.c')
-rw-r--r-- | mail/importers/pine-importer.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/mail/importers/pine-importer.c b/mail/importers/pine-importer.c index 3a4e6d9cc1..e460d66d2e 100644 --- a/mail/importers/pine-importer.c +++ b/mail/importers/pine-importer.c @@ -58,9 +58,9 @@ struct _pine_import_msg { EImportTarget *target; GMutex *status_lock; - char *status_what; - int status_pc; - int status_timeout_id; + gchar *status_what; + gint status_pc; + gint status_timeout_id; CamelOperation *status; }; @@ -68,7 +68,7 @@ static gboolean pine_supported(EImport *ei, EImportTarget *target, EImportImporter *im) { EImportTargetHome *s; - char *maildir, *addrfile; + gchar *maildir, *addrfile; gboolean md_exists, addr_exists; if (target->type != E_IMPORT_TARGET_HOME) @@ -102,10 +102,10 @@ FIXME: we dont handle aliases in lists. */ static void -import_contact(EBook *book, char *line) +import_contact(EBook *book, gchar *line) { - char **strings, *addr, **addrs; - int i; + gchar **strings, *addr, **addrs; + gint i; GList *list; /*EContactName *name;*/ EContact *card; @@ -165,7 +165,7 @@ import_contacts(void) ESource *primary; ESourceList *source_list; EBook *book; - char *name; + gchar *name; GString *line; FILE *fp; size_t offset; @@ -238,7 +238,7 @@ pine_import_exec(struct _pine_import_msg *m) import_contacts(); if (GPOINTER_TO_INT(g_datalist_get_data(&m->target->data, "pine-do-mail"))) { - char *path; + gchar *path; path = g_build_filename(g_get_home_dir(), "mail", NULL); mail_importer_import_folders_sync(path, pine_special_folders, 0, m->status); @@ -280,7 +280,7 @@ pine_import_free(struct _pine_import_msg *m) } static void -pine_status(CamelOperation *op, const char *what, int pc, void *data) +pine_status(CamelOperation *op, const gchar *what, gint pc, gpointer data) { struct _pine_import_msg *importer = data; @@ -297,11 +297,11 @@ pine_status(CamelOperation *op, const char *what, int pc, void *data) } static gboolean -pine_status_timeout(void *data) +pine_status_timeout(gpointer data) { struct _pine_import_msg *importer = data; - int pc; - char *what; + gint pc; + gchar *what; if (importer->status_what) { g_mutex_lock(importer->status_lock); @@ -328,7 +328,7 @@ static int mail_importer_pine_import(EImport *ei, EImportTarget *target) { struct _pine_import_msg *m; - int id; + gint id; m = mail_msg_new(&pine_import_info); g_datalist_set_data(&target->data, "pine-msg", m); |