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
This commit is contained in:
committed by
Jeffrey Stedfast
parent
2854f067ae
commit
378cb9febf
@ -1,7 +1,14 @@
|
||||
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.
|
||||
|
||||
2001-08-24 Peter Williams <peterw@ximian.com>
|
||||
|
||||
* Revert Not Zed's previous commits as they apparently can
|
||||
cause serious data loss for POP3 users.
|
||||
* Revert Not Zed's previous commits as they apparently can cause
|
||||
serious data loss for POP3 users.
|
||||
|
||||
2001-08-24 Ettore Perazzoli <ettore@ximian.com>
|
||||
|
||||
@ -20,7 +27,8 @@
|
||||
output buffer size. iconv bugs? returns E2BIG forever on some
|
||||
(valid) data?
|
||||
|
||||
* providers/local/camel-spool-summary.c (summary_rebuild): Likewise.
|
||||
* providers/local/camel-spool-summary.c (summary_rebuild):
|
||||
Likewise.
|
||||
|
||||
* providers/local/camel-mbox-summary.c (summary_rebuild):
|
||||
Summarising is spelt with an s.
|
||||
@ -34,7 +42,8 @@
|
||||
member, says the character encoding is raw, not utf8.
|
||||
|
||||
* providers/local/camel-spool-summary.c
|
||||
(spool_summary_sync_quick): Synchronising is spelt with an s, not a z.
|
||||
(spool_summary_sync_quick): Synchronising is spelt with an s, not
|
||||
a z.
|
||||
(spool_summary_sync_full): "
|
||||
|
||||
* providers/local/camel-mbox-summary.c (mbox_summary_sync_full):
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user