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

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