aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-disco-diary.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-25 08:07:02 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-25 08:07:02 +0800
commit378cb9febf6204eef00941d7a402c1b0a3a9377e (patch)
tree302e43cfe715dc74c134356ec9affcd24e9203cc /camel/camel-disco-diary.c
parent2854f067aec69b613f8b964daa4e15bd3311ec25 (diff)
downloadgsoc2013-evolution-378cb9febf6204eef00941d7a402c1b0a3a9377e.tar
gsoc2013-evolution-378cb9febf6204eef00941d7a402c1b0a3a9377e.tar.gz
gsoc2013-evolution-378cb9febf6204eef00941d7a402c1b0a3a9377e.tar.bz2
gsoc2013-evolution-378cb9febf6204eef00941d7a402c1b0a3a9377e.tar.lz
gsoc2013-evolution-378cb9febf6204eef00941d7a402c1b0a3a9377e.tar.xz
gsoc2013-evolution-378cb9febf6204eef00941d7a402c1b0a3a9377e.tar.zst
gsoc2013-evolution-378cb9febf6204eef00941d7a402c1b0a3a9377e.zip
Use fseek instead of fseeko since we want to be portable and use ftell
2001-08-24 Jeffrey Stedfast <fejj@ximian.com> * camel-disco-diary.c (camel_disco_diary_replay): Use fseek instead of fseeko since we want to be portable and use ftell rather than ftello for the same reason. (camel_disco_diary_empty): Same here. svn path=/trunk/; revision=12469
Diffstat (limited to 'camel/camel-disco-diary.c')
-rw-r--r--camel/camel-disco-diary.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/camel-disco-diary.c b/camel/camel-disco-diary.c
index 66063e8a78..7bbceb1ee0 100644
--- a/camel/camel-disco-diary.c
+++ b/camel/camel-disco-diary.c
@@ -270,14 +270,14 @@ camel_disco_diary_replay (CamelDiscoDiary *diary, CamelException *ex)
off_t size;
double pc;
- fseeko (diary->file, 0, SEEK_END);
- size = ftello (diary->file);
+ fseek (diary->file, 0, SEEK_END);
+ size = ftell (diary->file);
g_return_if_fail (size != 0);
rewind (diary->file);
camel_operation_start (NULL, _("Resynchronizing with server"));
while (!camel_exception_is_set (ex)) {
- pc = ftello (diary->file) / size;
+ pc = ftell (diary->file) / size;
camel_operation_progress (NULL, pc * 100);
if (camel_file_util_decode_uint32 (diary->file, &action) == -1)
@@ -399,7 +399,7 @@ camel_disco_diary_new (CamelDiscoStore *store, const char *filename, CamelExcept
gboolean
camel_disco_diary_empty (CamelDiscoDiary *diary)
{
- return ftello (diary->file) == 0;
+ return ftell (diary->file) == 0;
}
void