diff --git a/WINGs/WINGs/WUtil.h b/WINGs/WINGs/WUtil.h index a4e8f270..515bd18b 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 7dd9931a..112f1f75 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;