aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-06-14 10:51:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-14 10:51:11 +0800
commit6b12be62e100934ccae65f197c8c7eef2c8ae3a4 (patch)
tree1323080c8665ed0d3024545345cba825708de76d /plugins
parent6ee3d89d0b3707cc6f48b1e0c9099623fd034c92 (diff)
downloadgsoc2013-evolution-6b12be62e100934ccae65f197c8c7eef2c8ae3a4.tar
gsoc2013-evolution-6b12be62e100934ccae65f197c8c7eef2c8ae3a4.tar.gz
gsoc2013-evolution-6b12be62e100934ccae65f197c8c7eef2c8ae3a4.tar.bz2
gsoc2013-evolution-6b12be62e100934ccae65f197c8c7eef2c8ae3a4.tar.lz
gsoc2013-evolution-6b12be62e100934ccae65f197c8c7eef2c8ae3a4.tar.xz
gsoc2013-evolution-6b12be62e100934ccae65f197c8c7eef2c8ae3a4.tar.zst
gsoc2013-evolution-6b12be62e100934ccae65f197c8c7eef2c8ae3a4.zip
Fix coding style.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/calendar-http/calendar-http.c12
-rw-r--r--plugins/ipod-sync/ipod.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/calendar-http/calendar-http.c b/plugins/calendar-http/calendar-http.c
index ad89379922..d2e8f903c6 100644
--- a/plugins/calendar-http/calendar-http.c
+++ b/plugins/calendar-http/calendar-http.c
@@ -34,17 +34,17 @@ GtkWidget * e_calendar_http_secure (EPlugin *epl, EConfigHookItemFactoryData *da
GtkWidget *e_calendar_http_auth (EPlugin *epl, EConfigHookItemFactoryData *data);
/* replaces all '@' with '%40' in str; returns newly allocated string */
-static char *
-replace_at_sign (const char *str)
+static gchar *
+replace_at_sign (const gchar *str)
{
- char *res, *at;
+ gchar *res, *at;
if (!str)
return NULL;
res = g_strdup (str);
while (at = strchr (res, '@'), at) {
- char *tmp = g_malloc0 (sizeof (char) * (1 + strlen (res) + 2));
+ gchar *tmp = g_malloc0 (sizeof (gchar) * (1 + strlen (res) + 2));
strncpy (tmp, res, at - res);
strcat (tmp, "%40");
@@ -386,7 +386,7 @@ static void
username_changed (GtkEntry *entry, ESource *source)
{
const gchar *username;
- char *uri;
+ gchar *uri;
username = gtk_entry_get_text (GTK_ENTRY (entry));
@@ -401,7 +401,7 @@ username_changed (GtkEntry *entry, ESource *source)
uri = e_source_get_uri (source);
if (uri != NULL) {
EUri *euri;
- char *ruri;
+ gchar *ruri;
if (username && !*username)
username = NULL;
diff --git a/plugins/ipod-sync/ipod.c b/plugins/ipod-sync/ipod.c
index 75568660f1..ee7bfcb501 100644
--- a/plugins/ipod-sync/ipod.c
+++ b/plugins/ipod-sync/ipod.c
@@ -70,7 +70,7 @@ try_mount (gchar *device)
GError *err = NULL;
gint exit_status;
- argv[0] = (gchar*)MOUNT;
+ argv[0] = (gchar *)MOUNT;
argv[1] = device;
argv[2] = NULL;
@@ -94,7 +94,7 @@ try_umount (gchar *device)
GError *err = NULL;
gint exit_status;
- argv[0] = (gchar*)UMOUNT;
+ argv[0] = (gchar *)UMOUNT;
argv[1] = device;
argv[2] = NULL;