python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / gamin / 0002-no-const-return.patch
blob3e6e9052148bcd6b197c0bc4512c3d147fc56a32
1 G_CONST_RETURN is deprecated in glib 2.30 so remove to to avoid
2 build failures.
4 Upstream-Status: Pending
6 Index: 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.
14 -G_CONST_RETURN char *
15 +const char *
16 gam_node_get_path(GamNode * node)
18 g_assert(node);
19 Index: 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);
27 -G_CONST_RETURN char *gam_node_get_path (GamNode *node);
28 +const char *gam_node_get_path (GamNode *node);
30 GList *gam_node_get_subscriptions (GamNode *node);
32 Index: 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.
40 -G_CONST_RETURN char *
41 +const char *
42 gam_subscription_get_path(GamSubscription * sub)
44 if (sub == NULL)
45 Index: 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 @@
51 int gam_subscription_get_reqno (GamSubscription *sub);
53 -G_CONST_RETURN char *gam_subscription_get_path (GamSubscription *sub);
54 +const char *gam_subscription_get_path (GamSubscription *sub);
56 GamListener *gam_subscription_get_listener (GamSubscription *sub);