[tracker/binary-log-2: 7/46] Don't use global namespace for #defines for local use
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/binary-log-2: 7/46] Don't use global namespace for #defines for local use
- Date: Mon, 11 Jan 2010 17:07:28 +0000 (UTC)
commit 75432c2b31827f46a8dabb435de5468b35ca4c36
Author: Martyn Russell <martyn lanedo com>
Date: Mon Jan 4 14:33:59 2010 +0000
Don't use global namespace for #defines for local use
src/libtracker-db/tracker-db-journal.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index e9e155e..449264d 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -34,6 +34,9 @@
#include "tracker-db-journal.h"
+#define JOURNAL_FILENAME "tracker-store.journal"
+#define MIN_BLOCK_SIZE 1024
+
static struct {
GMappedFile *file;
const gchar *current;
@@ -58,9 +61,6 @@ static gchar *cur_block = NULL;
static guint cur_entry_amount = 0;
static guint cur_pos = 0;
-#define TRACKER_DB_JOURNAL_LOG_FILENAME "tracker-store.journal"
-#define MIN_BLOCK_SIZE 1024
-
gsize
tracker_db_journal_get_size (void)
{
@@ -74,11 +74,11 @@ tracker_db_journal_filename (void)
filename = g_build_filename (g_get_user_data_dir (),
"tracker",
"data",
- TRACKER_DB_JOURNAL_LOG_FILENAME,
+ JOURNAL_FILENAME,
NULL);
}
- return (const gchar *) filename;
+ return filename;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]