[tracker/class-signal] indentation here and there, squash with previous, also fixed gint pos to guint, same as GArray::len,



commit 720bcb7a794499666ca29639012a5e1dd7e66c70
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Aug 31 16:09:22 2010 +0200

    indentation here and there, squash with previous, also fixed gint pos to guint, same as GArray::len, still, squash

 src/libtracker-data/tracker-class.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-class.c b/src/libtracker-data/tracker-class.c
index 44af30e..6660559 100644
--- a/src/libtracker-data/tracker-class.c
+++ b/src/libtracker-data/tracker-class.c
@@ -608,7 +608,7 @@ tracker_class_transact_events (TrackerClass *class)
 
 
 static int
-comp_gint64(const void *m1, const void *m2)
+comp_gint64 (const void *m1, const void *m2)
 {
 	gint64 mi1 = * (gint64 *) m1;
 	gint64 mi2 = * (gint64 *) m2;
@@ -632,16 +632,18 @@ insert_vals_into_arrays (GArray *sub_pred_ids,
 	obj_graph_id = (gint64) object_id;
 	obj_graph_id = obj_graph_id << 32 | graph_id;
 
-	val = (gint64*) bsearch(&sub_pred_id,
+	val = (gint64 *) bsearch(&sub_pred_id,
 	                        sub_pred_ids->data,
 	                        sub_pred_ids->len,
-	                        sizeof(gint64),
+	                        sizeof (gint64),
 	                        comp_gint64);
 
 	if (val != NULL) {
-		gint pos = val - (gint64*)sub_pred_ids->data;
+		guint pos = val - (gint64 *) sub_pred_ids->data;
+
 		g_array_insert_val (sub_pred_ids, pos, sub_pred_id);
 		g_array_insert_val (obj_graph_ids, pos, obj_graph_id);
+
 		return;
 	}
 



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