rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / library / gamin / patches / 03-const.patch
blobfc5ac8db0eddfa60ab2299575d49b57fbd54dce0
1 diff -ur gamin-0.1.10/server.orig/gam_node.c gamin-0.1.10/server/gam_node.c
2 --- gamin-0.1.10/server.orig/gam_node.c Mon Aug 26 15:25:23 2013
3 +++ gamin-0.1.10/server/gam_node.c Mon Aug 26 15:25:54 2013
4 @@ -122,7 +122,7 @@
5 * it has finished with the string. If it must keep it longer, it
6 * should makes its own copy. The returned string must not be freed.
7 */
8 -G_CONST_RETURN char *
9 +const char *
10 gam_node_get_path(GamNode * node)
12 g_assert(node);
13 diff -ur gamin-0.1.10/server.orig/gam_node.h gamin-0.1.10/server/gam_node.h
14 --- gamin-0.1.10/server.orig/gam_node.h Mon Aug 26 15:25:22 2013
15 +++ gamin-0.1.10/server/gam_node.h Mon Aug 26 15:25:54 2013
16 @@ -58,7 +58,7 @@
17 void gam_node_set_is_dir (GamNode *node,
18 gboolean is_dir);
20 -G_CONST_RETURN char *gam_node_get_path (GamNode *node);
21 +const char *gam_node_get_path (GamNode *node);
23 GList *gam_node_get_subscriptions (GamNode *node);
25 diff -ur gamin-0.1.10/server.orig/gam_subscription.c gamin-0.1.10/server/gam_subscription.c
26 --- gamin-0.1.10/server.orig/gam_subscription.c Mon Aug 26 15:25:22 2013
27 +++ gamin-0.1.10/server/gam_subscription.c Mon Aug 26 15:25:54 2013
28 @@ -141,7 +141,7 @@
29 * @param sub the GamSubscription
30 * @returns The path being monitored. It should not be freed.
32 -G_CONST_RETURN char *
33 +const char *
34 gam_subscription_get_path(GamSubscription * sub)
36 if (sub == NULL)
37 diff -ur gamin-0.1.10/server.orig/gam_subscription.h gamin-0.1.10/server/gam_subscription.h
38 --- gamin-0.1.10/server.orig/gam_subscription.h Mon Aug 26 15:25:22 2013
39 +++ gamin-0.1.10/server/gam_subscription.h Mon Aug 26 15:25:54 2013
40 @@ -21,7 +21,7 @@
42 int gam_subscription_get_reqno (GamSubscription *sub);
44 -G_CONST_RETURN char *gam_subscription_get_path (GamSubscription *sub);
45 +const char *gam_subscription_get_path (GamSubscription *sub);
47 GamListener *gam_subscription_get_listener (GamSubscription *sub);