aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/migration.c
diff options
context:
space:
mode:
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;