From 6b12be62e100934ccae65f197c8c7eef2c8ae3a4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 13 Jun 2009 22:51:11 -0400 Subject: Fix coding style. --- plugins/calendar-http/calendar-http.c | 12 ++++++------ plugins/ipod-sync/ipod.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins') 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; -- cgit v1.2.3