1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-15 13:35:53 +01:00

Fixed const correctness in functions using 'wusergnusteppath'

The change introduced in previous commit for const correctness has
a small impact on WindowMaker's code, this patch fixes all the new
warnings.
This commit is contained in:
Christophe CURIS
2013-05-04 15:43:30 +02:00
committed by Carlos R. Mafra
parent cd1c55d63c
commit a18fd7cd69
6 changed files with 10 additions and 7 deletions

View File

@@ -1706,7 +1706,8 @@ Bool WMWritePropListToFile(WMPropList * plist, const char *path)
*/
int wmkdirhier(const char *path)
{
char *t, *thePath = NULL, buf[1024];
const char *t;
char *thePath = NULL, buf[1024];
size_t p, plen;
struct stat st;
@@ -1799,7 +1800,7 @@ int wrmdirhier(const char *path)
{
struct stat st;
int error;
char *t;
const char *t;
/* Only remove directories under $GNUSTEP_USER_ROOT */
if ((t = wusergnusteppath()) == NULL)