[Telepathy-commits] [telepathy-mission-control/master] src/mcd-debug.[ch]: Fix: Do not change the prototype of g_object_ref().

Alban Crequy alban.crequy at collabora.co.uk
Thu Nov 13 07:03:44 PST 2008


---
 src/mcd-debug.c |    4 ++--
 src/mcd-debug.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mcd-debug.c b/src/mcd-debug.c
index eef3553..c3c4482 100644
--- a/src/mcd-debug.c
+++ b/src/mcd-debug.c
@@ -40,7 +40,7 @@
 
 static gint mc_debug = 0;
 
-void
+gpointer
 mcd_debug_ref (gpointer obj, const gchar *filename, gint linenum)
 {
     /* Function reference untouchable by macro processing */
@@ -51,7 +51,7 @@ mcd_debug_ref (gpointer obj, const gchar *filename, gint linenum)
 	g_debug ("[%s:%d]: Referencing (%d) object %p of type %s",
 		 filename, linenum, G_OBJECT (obj)->ref_count,
 		 obj, G_OBJECT_TYPE_NAME(obj));
-    untouchable_ref (obj);
+    return untouchable_ref (obj);
 }
 
 void
diff --git a/src/mcd-debug.h b/src/mcd-debug.h
index 10b6b98..af6bf7f 100644
--- a/src/mcd-debug.h
+++ b/src/mcd-debug.h
@@ -38,7 +38,7 @@ void mcd_debug_init (void);
 
 inline gint mcd_debug_get_level (void);
 
-void mcd_debug_ref (gpointer obj, const gchar *filename, gint linenum);
+gpointer mcd_debug_ref (gpointer obj, const gchar *filename, gint linenum);
 void mcd_debug_unref (gpointer obj, const gchar *filename, gint linenum);
 
 void mcd_debug_print_tree (gpointer obj);
-- 
1.5.6.5



More information about the Telepathy-commits mailing list