[tracker/binary-log-2: 7/46] Don't use global namespace for #defines for local use



commit 0d59cb570b788357a9ad3c4df4710655b7e89dec
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]