From: Christophe CURIS <[email protected]>

According to the way its value is being used everywhere, that is
what would be expected, so let's make it official.

Please note that this may introduce warnings on user code using
this function ("...discard const...") but that's an opportunity
for them to check that their code is not doing anything wrong.
---
 WINGs/WINGs/WUtil.h  |    2 +-
 WINGs/userdefaults.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/WINGs/WINGs/WUtil.h b/WINGs/WINGs/WUtil.h
index a4e8f27..515bd18 100644
--- a/WINGs/WINGs/WUtil.h
+++ b/WINGs/WINGs/WUtil.h
@@ -816,7 +816,7 @@ Bool WMWritePropListToFile(WMPropList *plist, const char 
*path);
 /* ---[ WINGs/userdefaults.c ]-------------------------------------------- */
 
 /* don't free the returned string */
-char* wusergnusteppath(void);
+const char* wusergnusteppath(void);
 
 /* Free the returned string when you no longer need it */
 char* wdefaultspathfordomain(const char *domain);
diff --git a/WINGs/userdefaults.c b/WINGs/userdefaults.c
index 7dd9931..112f1f7 100644
--- a/WINGs/userdefaults.c
+++ b/WINGs/userdefaults.c
@@ -46,7 +46,7 @@ extern char *WMGetApplicationName();
 #define UD_SYNC_INTERVAL       2000
 #endif
 
-char *wusergnusteppath()
+const char *wusergnusteppath()
 {
        static char *path = NULL;
        char *gspath;
-- 
1.7.10.4


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

Reply via email to