Just a quick note...

On Wed 17.Mar'10 at 23:08:29 +0100, Tamas TEVESZ wrote:
> 

> +int wrmdirhier(const char *path)

[...]

> +     char *ptree[2];

> +     ptree[0] = path;
> +     ptree[1] = NULL;

My gcc warns (too much) here:

proplist.c: In function ‘wrmdirhier’:
proplist.c:1724: warning: assignment discards qualifiers from pointer target 
type

and is silenced by the patch below.

May I squash this in?

diff --git a/WINGs/proplist.c b/WINGs/proplist.c
index 4c65d77..f4d9c76 100644
--- a/WINGs/proplist.c
+++ b/WINGs/proplist.c
@@ -1721,7 +1721,7 @@ int wrmdirhier(const char *path)
        if (stat(path, &st) == -1)
                return 0;
 
-       ptree[0] = path;
+       ptree[0] = (char *)path;
        ptree[1] = NULL;
 
        if (!(fts = fts_open(ptree, FTS_PHYSICAL, NULL)))


-- 
To unsubscribe, send mail to [email protected].

Reply via email to