mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Sanitize calling sites of wDefaultsCheckDomains()
There is no point in having parameter in wDefaultsCheckDomains() and
not using it, so let's simply remove the parameter altogether and
avoid silly-looking things like
wDefaultsCheckDomains("bla");
This commit is contained in:
@@ -1209,7 +1209,7 @@ wReadStaticDefaults(WMPropList *dict)
|
||||
|
||||
|
||||
void
|
||||
wDefaultsCheckDomains(void *foo)
|
||||
wDefaultsCheckDomains(void)
|
||||
{
|
||||
WScreen *scr;
|
||||
struct stat stbuf;
|
||||
|
||||
@@ -46,7 +46,7 @@ void wDefaultUpdateIcons(WScreen *scr);
|
||||
|
||||
void wReadStaticDefaults(WMPropList *dict);
|
||||
|
||||
void wDefaultsCheckDomains(void *screen);
|
||||
void wDefaultsCheckDomains(void);
|
||||
|
||||
void wSaveDefaults(WScreen *scr);
|
||||
|
||||
|
||||
@@ -216,7 +216,7 @@ DispatchEvent(XEvent *event)
|
||||
Restart(NULL, True);
|
||||
} else if (WCHECK_STATE(WSTATE_NEED_REREAD)) {
|
||||
WCHANGE_STATE(WSTATE_NORMAL);
|
||||
wDefaultsCheckDomains("bla");
|
||||
wDefaultsCheckDomains();
|
||||
}
|
||||
|
||||
/* for the case that all that is wanted to be dispatched is
|
||||
@@ -356,7 +356,7 @@ void inotifyHandleEvents (int fd, int wd)
|
||||
}
|
||||
if ((pevent->mask & IN_MODIFY) && oneShotFlag == 0) {
|
||||
fprintf(stdout,"wmaker: reading config files in defaults database.\n");
|
||||
wDefaultsCheckDomains(NULL);
|
||||
wDefaultsCheckDomains();
|
||||
}
|
||||
|
||||
/* move to next event in the buffer */
|
||||
@@ -1013,7 +1013,7 @@ handleClientMessage(XEvent *event)
|
||||
}
|
||||
} else if (event->xclient.message_type == _XA_WINDOWMAKER_COMMAND) {
|
||||
|
||||
wDefaultsCheckDomains("bla");
|
||||
wDefaultsCheckDomains();
|
||||
|
||||
} else if (event->xclient.message_type == _XA_WINDOWMAKER_WM_FUNCTION) {
|
||||
WApplication *wapp;
|
||||
|
||||
Reference in New Issue
Block a user