diff options
Diffstat (limited to 'xkbpath.c')
-rw-r--r-- | xkbpath.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -284,7 +284,7 @@ XkbDirectoryForInclude(unsigned type) typedef struct _FileCacheEntry { - char *name; + const char *name; unsigned type; char *path; void *data; @@ -306,7 +306,7 @@ static FileCacheEntry *fileCache; * @return The data from the overwritten file or NULL. */ void * -XkbAddFileToCache(char *name, unsigned type, char *path, void *data) +XkbAddFileToCache(const char *name, unsigned type, char *path, void *data) { FileCacheEntry *entry; @@ -346,7 +346,7 @@ XkbAddFileToCache(char *name, unsigned type, char *path, void *data) * @return the data from the cache entry or NULL if no matching entry was found. */ void * -XkbFindFileInCache(char *name, unsigned type, char **pathRtrn) +XkbFindFileInCache(const char *name, unsigned type, char **pathRtrn) { FileCacheEntry *entry; @@ -374,11 +374,12 @@ XkbFindFileInCache(char *name, unsigned type, char **pathRtrn) * pathRtrn is undefined. */ FILE * -XkbFindFileInPath(char *name, unsigned type, char **pathRtrn) +XkbFindFileInPath(const char *name, unsigned type, char **pathRtrn) { FILE *file = NULL; int nameLen, typeLen; - char buf[PATH_MAX], *typeDir; + char buf[PATH_MAX]; + const char *typeDir; typeDir = XkbDirectoryForInclude(type); nameLen = strlen(name); |