xref: /OK3568_Linux_fs/buildroot/package/gamin/0002-no-const-return.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1G_CONST_RETURN is deprecated in glib 2.30 so remove to to avoid
2build failures.
3
4Upstream-Status: Pending
5
6Index: gamin-0.1.10/server/gam_node.c
7===================================================================
8--- gamin-0.1.10.orig/server/gam_node.c	2011-10-12 15:25:45.217178314 +0100
9+++ gamin-0.1.10/server/gam_node.c	2011-10-12 15:26:17.807178293 +0100
10@@ -122,7 +122,7 @@
11  * it has finished with the string.  If it must keep it longer, it
12  * should makes its own copy.  The returned string must not be freed.
13  */
14-G_CONST_RETURN char *
15+const char *
16 gam_node_get_path(GamNode * node)
17 {
18     g_assert(node);
19Index: gamin-0.1.10/server/gam_node.h
20===================================================================
21--- gamin-0.1.10.orig/server/gam_node.h	2011-10-12 15:25:46.857178269 +0100
22+++ gamin-0.1.10/server/gam_node.h	2011-10-12 15:26:28.637178297 +0100
23@@ -58,7 +58,7 @@
24 void                  gam_node_set_is_dir          (GamNode         *node,
25 						   gboolean        is_dir);
26
27-G_CONST_RETURN char  *gam_node_get_path            (GamNode         *node);
28+const char  *gam_node_get_path            (GamNode         *node);
29
30 GList                *gam_node_get_subscriptions   (GamNode         *node);
31
32Index: gamin-0.1.10/server/gam_subscription.c
33===================================================================
34--- gamin-0.1.10.orig/server/gam_subscription.c	2011-10-12 15:25:40.497177525 +0100
35+++ gamin-0.1.10/server/gam_subscription.c	2011-10-12 15:26:39.867178304 +0100
36@@ -141,7 +141,7 @@
37  * @param sub the GamSubscription
38  * @returns The path being monitored.  It should not be freed.
39  */
40-G_CONST_RETURN char *
41+const char *
42 gam_subscription_get_path(GamSubscription * sub)
43 {
44     if (sub == NULL)
45Index: gamin-0.1.10/server/gam_subscription.h
46===================================================================
47--- gamin-0.1.10.orig/server/gam_subscription.h	2011-10-12 15:25:28.507178266 +0100
48+++ gamin-0.1.10/server/gam_subscription.h	2011-10-12 15:25:58.817178285 +0100
49@@ -21,7 +21,7 @@
50
51 int                  gam_subscription_get_reqno    (GamSubscription *sub);
52
53-G_CONST_RETURN char *gam_subscription_get_path     (GamSubscription *sub);
54+const char *gam_subscription_get_path     (GamSubscription *sub);
55
56 GamListener         *gam_subscription_get_listener (GamSubscription *sub);
57
58