[tracker/binary-log-2: 21/63] libtracker-db: Small code clean ups



commit 86f5865aee3827888dffb8de475b73a3a69cd76f
Author: Martyn Russell <martyn lanedo com>
Date:   Mon Jan 4 14:04:43 2010 +0000

    libtracker-db: Small code clean ups

 src/libtracker-db/tracker-db-journal.c |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index 37fb380..df13381 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -18,6 +18,7 @@
  *
  * Author: Philip Van Hoof <philip codeminded be>
  */
+
 #include "config.h"
 
 #define _GNU_SOURCE
@@ -96,7 +97,6 @@ kill_cur_block (void)
 	cur_block = NULL;
 }
 
-
 static gint
 nearest_pow (gint num)
 {
@@ -179,7 +179,9 @@ tracker_db_journal_start_transaction (void)
 }
 
 static void
-cur_setnum (gchar *dest, guint *pos, guint32 val)
+cur_setnum (gchar   *dest, 
+            guint   *pos, 
+            guint32  val)
 {
 	memset (dest + (*pos)++, val >> 24 & 0xff, 1);
 	memset (dest + (*pos)++, val >> 16 & 0xff, 1);
@@ -188,7 +190,10 @@ cur_setnum (gchar *dest, guint *pos, guint32 val)
 }
 
 static void
-cur_setstr (gchar *dest, guint *pos, const gchar *str, gsize len)
+cur_setstr (gchar       *dest, 
+            guint       *pos, 
+            const gchar *str, 
+            gsize        len)
 {
 	memcpy (dest + *pos, str, len);
 	(*pos) += len;
@@ -564,9 +569,9 @@ tracker_db_journal_get_statement (guint32      *s_code,
 }
 
 void
-tracker_db_journal_get_statement_code (guint32    *s_code,
-                                       guint32    *p_code,
-                                       guint32    *o_code)
+tracker_db_journal_get_statement_code (guint32 *s_code,
+                                       guint32 *p_code,
+                                       guint32 *o_code)
 {
 	g_return_if_fail (journal_reader.type == TRACKER_DB_JOURNAL_INSERT_STATEMENT_CODE ||
 	                  journal_reader.type == TRACKER_DB_JOURNAL_DELETE_STATEMENT_CODE);



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