aboutsummaryrefslogtreecommitdiffstats
path: root/mail/importers
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-08 00:22:36 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:10 +0800
commit578214584caa7805edca09b27e2306dc31d80fb6 (patch)
treedfa18882e01b362a721fd47bd901538bc5e3a9c4 /mail/importers
parent30fe010cffa6f290170147ea9a8b617d04fab39d (diff)
downloadgsoc2013-evolution-578214584caa7805edca09b27e2306dc31d80fb6.tar
gsoc2013-evolution-578214584caa7805edca09b27e2306dc31d80fb6.tar.gz
gsoc2013-evolution-578214584caa7805edca09b27e2306dc31d80fb6.tar.bz2
gsoc2013-evolution-578214584caa7805edca09b27e2306dc31d80fb6.tar.lz
gsoc2013-evolution-578214584caa7805edca09b27e2306dc31d80fb6.tar.xz
gsoc2013-evolution-578214584caa7805edca09b27e2306dc31d80fb6.tar.zst
gsoc2013-evolution-578214584caa7805edca09b27e2306dc31d80fb6.zip
Whitespace and coding style cleanups.
Diffstat (limited to 'mail/importers')
-rw-r--r--mail/importers/mail-importer.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/importers/mail-importer.c b/mail/importers/mail-importer.c
index f6cbbbb82c..f8edee6dac 100644
--- a/mail/importers/mail-importer.c
+++ b/mail/importers/mail-importer.c
@@ -118,7 +118,9 @@ import_mbox_exec (struct _import_mbox_msg *m,
CamelMessageInfo *info;
if (g_stat (m->path, &st) == -1) {
- g_warning("cannot find source file to import '%s': %s", m->path, g_strerror(errno));
+ g_warning (
+ "cannot find source file to import '%s': %s",
+ m->path, g_strerror (errno));
return;
}
@@ -135,7 +137,9 @@ import_mbox_exec (struct _import_mbox_msg *m,
if (S_ISREG (st.st_mode)) {
fd = g_open (m->path, O_RDONLY|O_BINARY, 0);
if (fd == -1) {
- g_warning("cannot find source file to import '%s': %s", m->path, g_strerror(errno));
+ g_warning (
+ "cannot find source file to import '%s': %s",
+ m->path, g_strerror (errno));
goto fail1;
}
@@ -157,7 +161,9 @@ import_mbox_exec (struct _import_mbox_msg *m,
guint32 flags = 0;
if (st.st_size > 0)
- pc = (gint)(100.0 * ((double)camel_mime_parser_tell (mp) / (double)st.st_size));
+ pc = (gint) (100.0 * ((gdouble)
+ camel_mime_parser_tell (mp) /
+ (gdouble) st.st_size));
camel_operation_progress (cancellable, pc);
msg = camel_mime_message_new ();