Magellan Linux

Annotation of /trunk/gamin/patches/gamin-0.1.10-fix-deprecated-const.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1915 - (hide annotations) (download)
Mon Oct 15 18:30:41 2012 UTC (11 years, 7 months ago) by niro
File size: 2147 byte(s)
-fixed patchwork
1 niro 1915 diff -Naur gamin-0.1.10/server/gam_node.c gamin-0.1.10-fixed/server/gam_node.c
2     --- gamin-0.1.10/server/gam_node.c 2007-07-04 15:36:49.000000000 +0200
3     +++ gamin-0.1.10-fixed/server/gam_node.c 2012-10-15 22:30:44.368983206 +0200
4 niro 1914 @@ -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)
11     {
12     g_assert(node);
13 niro 1915 diff -Naur gamin-0.1.10/server/gam_node.h gamin-0.1.10-fixed/server/gam_node.h
14     --- gamin-0.1.10/server/gam_node.h 2007-07-04 15:36:49.000000000 +0200
15     +++ gamin-0.1.10-fixed/server/gam_node.h 2012-10-15 22:31:27.629983204 +0200
16 niro 1914 @@ -58,7 +58,7 @@
17     void gam_node_set_is_dir (GamNode *node,
18 niro 1915 gboolean is_dir);
19    
20 niro 1914 -G_CONST_RETURN char *gam_node_get_path (GamNode *node);
21     +const char *gam_node_get_path (GamNode *node);
22 niro 1915
23 niro 1914 GList *gam_node_get_subscriptions (GamNode *node);
24 niro 1915
25     diff -Naur gamin-0.1.10/server/gam_subscription.c gamin-0.1.10-fixed/server/gam_subscription.c
26     --- gamin-0.1.10/server/gam_subscription.c 2007-07-04 15:36:49.000000000 +0200
27     +++ gamin-0.1.10-fixed/server/gam_subscription.c 2012-10-15 22:31:09.911983206 +0200
28 niro 1914 @@ -141,7 +141,7 @@
29     * @param sub the GamSubscription
30     * @returns The path being monitored. It should not be freed.
31     */
32     -G_CONST_RETURN char *
33     +const char *
34     gam_subscription_get_path(GamSubscription * sub)
35     {
36     if (sub == NULL)
37 niro 1915 diff -Naur gamin-0.1.10/server/gam_subscription.h gamin-0.1.10-fixed/server/gam_subscription.h
38     --- gamin-0.1.10/server/gam_subscription.h 2007-07-04 15:36:49.000000000 +0200
39     +++ gamin-0.1.10-fixed/server/gam_subscription.h 2012-10-15 22:32:01.425983206 +0200
40 niro 1914 @@ -21,7 +21,7 @@
41 niro 1915
42 niro 1914 int gam_subscription_get_reqno (GamSubscription *sub);
43 niro 1915
44 niro 1914 -G_CONST_RETURN char *gam_subscription_get_path (GamSubscription *sub);
45     +const char *gam_subscription_get_path (GamSubscription *sub);
46 niro 1915
47 niro 1914 GamListener *gam_subscription_get_listener (GamSubscription *sub);
48 niro 1915