aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/migration.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-06-02 07:09:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-02 07:09:19 +0800
commit8771a6de3590d468d1a2c3cfab34955c624f614a (patch)
treedc23ed6ab0533bc9f241976f33b6c6cc2d7ee117 /calendar/gui/migration.c
parent69a1e923a71ee881721e21b991de08b897f9e7b0 (diff)
downloadgsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.tar.gz
gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.tar.zst
gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.zip
More code cleanup.
Diffstat (limited to 'calendar/gui/migration.c')
-rw-r--r--calendar/gui/migration.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c
index 6c5504afa3..6ebf17fd6c 100644
--- a/calendar/gui/migration.c
+++ b/calendar/gui/migration.c
@@ -207,7 +207,7 @@ dialog_set_progress (double percent)
{
gchar text[5];
- snprintf (text, sizeof (text), "%d%%", (int) (percent * 100.0f));
+ snprintf (text, sizeof (text), "%d%%", (gint) (percent * 100.0f));
gtk_progress_bar_set_fraction (progress, percent);
gtk_progress_bar_set_text (progress, text);
@@ -243,7 +243,7 @@ get_source_name (ESourceGroup *group, const gchar *path)
gboolean conflict;
GString *s = g_string_new (NULL);
- for (i = 0; p[i]; i ++) ;
+ for (i = 0; p[i]; i ++);
num_elements = i;
i--;
@@ -644,9 +644,9 @@ migrate_pilot_data (const gchar *component, const gchar *conduit, const gchar *o
((ext = strrchr (dent, '.')) && !strcmp (ext, ".xml"))) {
/* pilot map file - src and dest file formats are identical */
guchar inbuf[4096];
- size_t nread, nwritten;
+ gsize nread, nwritten;
gint fd0, fd1;
- ssize_t n;
+ gssize n;
filename = g_build_filename (old_path, dent, NULL);
if ((fd0 = g_open (filename, O_RDONLY|O_BINARY, 0)) == -1) {
@@ -1140,7 +1140,7 @@ add_gw_esource (ESourceList *source_list, const gchar *group_name, const gchar
{
ESourceGroup *group;
ESource *source;
- GSList *ids, *temp ;
+ GSList *ids, *temp;
GError *error = NULL;
gchar *relative_uri;
const gchar *soap_port;