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

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