aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-folder-map.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 22:29:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-27 22:29:19 +0800
commit948235c3d1076dbe6ed2e57a24c16a083bbd9f01 (patch)
tree4133b1adfd94d8f889ca7ad4ad851346518f4171 /e-util/e-folder-map.c
parentcc3a98fc1ad5bb87aa7335f3de404ee7feee1541 (diff)
downloadgsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.gz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.bz2
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.lz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.xz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.zst
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'e-util/e-folder-map.c')
-rw-r--r--e-util/e-folder-map.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/e-util/e-folder-map.c b/e-util/e-folder-map.c
index d74817ecfe..c77772f289 100644
--- a/e-util/e-folder-map.c
+++ b/e-util/e-folder-map.c
@@ -41,11 +41,11 @@
#define d(x)
static gboolean
-is_type_folder (const char *metadata, const char *search_type)
+is_type_folder (const gchar *metadata, const gchar *search_type)
{
xmlNodePtr node;
xmlDocPtr doc;
- char *type;
+ gchar *type;
doc = e_xml_parse_file (metadata);
if (!doc) {
@@ -59,7 +59,7 @@ is_type_folder (const char *metadata, const char *search_type)
return FALSE;
}
- if (!node->name || strcmp ((char *)node->name, "efolder") != 0) {
+ if (!node->name || strcmp ((gchar *)node->name, "efolder") != 0) {
g_warning ("`%s' corrupt: root node is not 'efolder'", metadata);
xmlFreeDoc (doc);
return FALSE;
@@ -67,8 +67,8 @@ is_type_folder (const char *metadata, const char *search_type)
node = node->children;
while (node != NULL) {
- if (node->name && !strcmp ((char *)node->name, "type")) {
- type = (char *)xmlNodeGetContent (node);
+ if (node->name && !strcmp ((gchar *)node->name, "type")) {
+ type = (gchar *)xmlNodeGetContent (node);
if (!strcmp (type, search_type)) {
xmlFreeDoc (doc);
xmlFree (type);
@@ -90,10 +90,10 @@ is_type_folder (const char *metadata, const char *search_type)
}
static void
-e_folder_map_dir (const char *dirname, const char *type, GSList **dir_list)
+e_folder_map_dir (const gchar *dirname, const gchar *type, GSList **dir_list)
{
- char *path;
- const char *name;
+ gchar *path;
+ const gchar *name;
GDir *dir;
GError *error = NULL;
@@ -129,7 +129,7 @@ e_folder_map_dir (const char *dirname, const char *type, GSList **dir_list)
}
while ((name = g_dir_read_name (dir))) {
- char *full_path;
+ gchar *full_path;
if (*name == '.')
continue;
@@ -152,7 +152,7 @@ e_folder_map_dir (const char *dirname, const char *type, GSList **dir_list)
GSList *
e_folder_map_local_folders (const gchar *local_dir, const gchar *type)
{
- const char *name;
+ const gchar *name;
GDir *dir;
GSList *dir_list = NULL;
GError *error = NULL;
@@ -164,7 +164,7 @@ e_folder_map_local_folders (const gchar *local_dir, const gchar *type)
}
while ((name = g_dir_read_name (dir))) {
- char *full_path;
+ gchar *full_path;
if (*name == '.')
continue;