mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
wmaker: Added 'const' attribute to function 'wDefaultsInitDomain'
This has a few side effects which are properly handled by this patch Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
062ff99fac
commit
69b6848187
@@ -801,7 +801,7 @@ static void initDefaults(void)
|
||||
}
|
||||
}
|
||||
|
||||
static WMPropList *readGlobalDomain(char *domainName, Bool requireDictionary)
|
||||
static WMPropList *readGlobalDomain(const char *domainName, Bool requireDictionary)
|
||||
{
|
||||
WMPropList *globalDict = NULL;
|
||||
char path[PATH_MAX];
|
||||
@@ -887,12 +887,12 @@ void wDefaultsMergeGlobalMenus(WDDomain * menuDomain)
|
||||
menuDomain->dictionary = menu;
|
||||
}
|
||||
|
||||
WDDomain *wDefaultsInitDomain(char *domain, Bool requireDictionary)
|
||||
WDDomain *wDefaultsInitDomain(const char *domain, Bool requireDictionary)
|
||||
{
|
||||
WDDomain *db;
|
||||
struct stat stbuf;
|
||||
static int inited = 0;
|
||||
char *the_path;
|
||||
const char *the_path;
|
||||
WMPropList *shared_dict = NULL;
|
||||
|
||||
if (!inited) {
|
||||
|
||||
@@ -22,13 +22,13 @@
|
||||
#define WMDEFAULTS_H_
|
||||
|
||||
typedef struct WDDomain {
|
||||
char *domain_name;
|
||||
const char *domain_name;
|
||||
WMPropList *dictionary;
|
||||
char *path;
|
||||
const char *path;
|
||||
time_t timestamp;
|
||||
} WDDomain;
|
||||
|
||||
WDDomain * wDefaultsInitDomain(char *domain, Bool requireDictionary);
|
||||
WDDomain * wDefaultsInitDomain(const char *domain, Bool requireDictionary);
|
||||
|
||||
void wDefaultsMergeGlobalMenus(WDDomain *menuDomain);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user