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



commit 3694ef7f914c10033f987ff1e0b8f202d2615646
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 7122d65..ccc6bc0 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;
@@ -60,9 +63,6 @@ static struct {
 	guint cur_pos;
 } writer;
 
-#define TRACKER_DB_JOURNAL_LOG_FILENAME  "tracker-store.journal"
-#define MIN_BLOCK_SIZE                   1024
-
 gsize
 tracker_db_journal_get_size (void)
 {
@@ -76,11 +76,11 @@ tracker_db_journal_filename (void)
 		writer.filename = g_build_filename (g_get_user_data_dir (),
 		                                    "tracker",
 		                                    "data",
-		                                    TRACKER_DB_JOURNAL_LOG_FILENAME,
+		                                    JOURNAL_LOG_FILENAME,
 		                                    NULL);
 	}
 
-	return (const gchar *) filename;
+	return filename;
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]