Blame SOURCES/0002-Fix-compilation-of-recent-glib-removing-G_CONST_RETU.patch

3bb553
From 77fe68f43ce75e920b0a94b0bc572cf3a21714f2 Mon Sep 17 00:00:00 2001
3bb553
From: Maciej Piechotka <uzytkownik2@gmail.com>
3bb553
Date: Tue, 13 Sep 2011 09:47:05 +0200
3bb553
Subject: [PATCH 2/2] Fix compilation of recent glib removing G_CONST_RETURN
3bb553
3bb553
https://bugzilla.gnome.org/show_bug.cgi?id=658884
3bb553
---
3bb553
 server/gam_node.c         | 2 +-
3bb553
 server/gam_node.h         | 2 +-
3bb553
 server/gam_subscription.c | 2 +-
3bb553
 server/gam_subscription.h | 2 +-
3bb553
 4 files changed, 4 insertions(+), 4 deletions(-)
3bb553
3bb553
diff --git a/server/gam_node.c b/server/gam_node.c
3bb553
index 02358ba..d0302d2 100644
3bb553
--- a/server/gam_node.c
3bb553
+++ b/server/gam_node.c
3bb553
@@ -122,7 +122,7 @@ gam_node_set_is_dir(GamNode * node, gboolean is_dir)
3bb553
  * it has finished with the string.  If it must keep it longer, it
3bb553
  * should makes its own copy.  The returned string must not be freed.
3bb553
  */
3bb553
-G_CONST_RETURN char *
3bb553
+const char *
3bb553
 gam_node_get_path(GamNode * node)
3bb553
 {
3bb553
     g_assert(node);
3bb553
diff --git a/server/gam_node.h b/server/gam_node.h
3bb553
index 02c8692..83349a8 100644
3bb553
--- a/server/gam_node.h
3bb553
+++ b/server/gam_node.h
3bb553
@@ -58,7 +58,7 @@ gboolean              gam_node_is_dir              (GamNode         *node);
3bb553
 void                  gam_node_set_is_dir          (GamNode         *node,
3bb553
 						   gboolean        is_dir);
3bb553
 	
3bb553
-G_CONST_RETURN char  *gam_node_get_path            (GamNode         *node);
3bb553
+const char           *gam_node_get_path            (GamNode         *node);
3bb553
 
3bb553
 GList                *gam_node_get_subscriptions   (GamNode         *node);
3bb553
 
3bb553
diff --git a/server/gam_subscription.c b/server/gam_subscription.c
3bb553
index dfa3273..4675b34 100644
3bb553
--- a/server/gam_subscription.c
3bb553
+++ b/server/gam_subscription.c
3bb553
@@ -141,7 +141,7 @@ gam_subscription_pathlen(GamSubscription * sub)
3bb553
  * @param sub the GamSubscription
3bb553
  * @returns The path being monitored.  It should not be freed.
3bb553
  */
3bb553
-G_CONST_RETURN char *
3bb553
+const char *
3bb553
 gam_subscription_get_path(GamSubscription * sub)
3bb553
 {
3bb553
     if (sub == NULL)
3bb553
diff --git a/server/gam_subscription.h b/server/gam_subscription.h
3bb553
index d894fbe..e6b4e15 100644
3bb553
--- a/server/gam_subscription.h
3bb553
+++ b/server/gam_subscription.h
3bb553
@@ -21,7 +21,7 @@ int                  gam_subscription_pathlen      (GamSubscription *sub);
3bb553
 
3bb553
 int                  gam_subscription_get_reqno    (GamSubscription *sub);
3bb553
 
3bb553
-G_CONST_RETURN char *gam_subscription_get_path     (GamSubscription *sub);
3bb553
+const char          *gam_subscription_get_path     (GamSubscription *sub);
3bb553
 
3bb553
 GamListener         *gam_subscription_get_listener (GamSubscription *sub);
3bb553
 
3bb553
-- 
3bb553
1.8.1.2
3bb553