aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/common
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 /calendar/common
parentcc3a98fc1ad5bb87aa7335f3de404ee7feee1541 (diff)
downloadgsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.gz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.zst
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'calendar/common')
-rw-r--r--calendar/common/authentication.c20
-rw-r--r--calendar/common/authentication.h2
2 files changed, 11 insertions, 11 deletions
diff --git a/calendar/common/authentication.c b/calendar/common/authentication.c
index a33177874f..a9e2b95ea0 100644
--- a/calendar/common/authentication.c
+++ b/calendar/common/authentication.c
@@ -34,11 +34,11 @@
static GHashTable *source_lists_hash = NULL;
-static char *
-auth_func_cb (ECal *ecal, const char *prompt, const char *key, gpointer user_data)
+static gchar *
+auth_func_cb (ECal *ecal, const gchar *prompt, const gchar *key, gpointer user_data)
{
gboolean remember;
- char *password, *auth_domain;
+ gchar *password, *auth_domain;
ESource *source;
const gchar *component_name;
@@ -56,11 +56,11 @@ auth_func_cb (ECal *ecal, const char *prompt, const char *key, gpointer user_dat
return password;
}
-static char *
+static gchar *
build_pass_key (ECal *ecal)
{
- char *euri_str;
- const char *uri;
+ gchar *euri_str;
+ const gchar *uri;
EUri *euri;
uri = e_cal_get_uri (ecal);
@@ -76,7 +76,7 @@ void
auth_cal_forget_password (ECal *ecal)
{
ESource *source = NULL;
- const char *auth_domain = NULL, *component_name = NULL, *auth_type = NULL;
+ const gchar *auth_domain = NULL, *component_name = NULL, *auth_type = NULL;
source = e_cal_get_source (ecal);
auth_domain = e_source_get_property (source, "auth-domain");
@@ -84,7 +84,7 @@ auth_cal_forget_password (ECal *ecal)
auth_type = e_source_get_property (source, "auth-type");
if (auth_type) {
- char *key = NULL;
+ gchar *key = NULL;
key = build_pass_key (ecal);
e_passwords_forget_password (component_name, key);
@@ -119,7 +119,7 @@ auth_new_cal_from_source (ESource *source, ECalSourceType type)
}
ECal *
-auth_new_cal_from_uri (const char *uri, ECalSourceType type)
+auth_new_cal_from_uri (const gchar *uri, ECalSourceType type)
{
ESourceGroup *group = NULL;
ESource *source = NULL;
@@ -144,7 +144,7 @@ auth_new_cal_from_uri (const char *uri, ECalSourceType type)
GSList *sl;
for (sl = e_source_group_peek_sources (gl->data); sl != NULL; sl = sl->next) {
- char *source_uri;
+ gchar *source_uri;
source_uri = e_source_get_uri (sl->data);
if (source_uri) {
diff --git a/calendar/common/authentication.h b/calendar/common/authentication.h
index 696a36d2ff..7d9d7f5fa7 100644
--- a/calendar/common/authentication.h
+++ b/calendar/common/authentication.h
@@ -29,7 +29,7 @@
ECal *auth_new_cal_from_default (ECalSourceType type);
ECal *auth_new_cal_from_source (ESource *source, ECalSourceType type);
-ECal *auth_new_cal_from_uri (const char *uri, ECalSourceType type);
+ECal *auth_new_cal_from_uri (const gchar *uri, ECalSourceType type);
void auth_cal_forget_password (ECal *ecal);
#endif