[tracker/binary-log] Replaced write with fwrite
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/binary-log] Replaced write with fwrite
- Date: Wed, 30 Dec 2009 12:29:16 +0000 (UTC)
commit f7c467baa4df52c70af9abb7461d8992e0904402
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Dec 30 13:27:39 2009 +0100
Replaced write with fwrite
src/libtracker-db/tracker-db-journal.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index ba03c45..5255500 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -138,7 +138,7 @@ tracker_db_journal_open (const gchar *filen)
cur_block[6] = '0';
cur_block[7] = '1';
- write (fileno (journal), cur_block, 8);
+ fwrite (cur_block, 8, 1, journal);
current_size += 8;
@@ -302,7 +302,7 @@ tracker_db_journal_commit_transaction (void)
cur_block_len += size;
- write (fileno (journal), cur_block, cur_block_len);
+ fwrite (cur_block, cur_block_len, 1, journal);
current_size += cur_block_len;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]