mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-19 16:25:50 +01:00
util: Added 'const' attribute to function parameters
This commit is contained in:
committed by
Carlos R. Mafra
parent
d44aa97243
commit
5d03c455fc
@@ -36,7 +36,7 @@ static void assemblePLMenuFunc(WMTreeNode *aNode, void *data);
|
||||
static int dirParseFunc(const char *filename, const struct stat *st, int tflags, struct FTW *ftw);
|
||||
static int menuSortFunc(const void *left, const void *right);
|
||||
static int nodeFindSubMenuByNameFunc(const void *item, const void *cdata);
|
||||
static WMTreeNode *findPositionInMenu(char *submenu);
|
||||
static WMTreeNode *findPositionInMenu(const char *submenu);
|
||||
static void (*parse)(const char *file, void (*addWMMenuEntryCallback)(WMMenuEntry *aEntry));
|
||||
static Bool (*validateFilename)(const char *filename, const struct stat *st, int tflags, struct FTW *ftw);
|
||||
|
||||
@@ -282,7 +282,7 @@ static int menuSortFunc(const void *left, const void *right)
|
||||
/* returns the leaf an entry with the submenu spec `submenu' attaches to.
|
||||
* creates `submenu' path (anchored to the root) along the way.
|
||||
*/
|
||||
static WMTreeNode *findPositionInMenu(char *submenu)
|
||||
static WMTreeNode *findPositionInMenu(const char *submenu)
|
||||
{
|
||||
char *q;
|
||||
WMMenuEntry *wm;
|
||||
|
||||
Reference in New Issue
Block a user