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

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