mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-24 16:46:54 +01:00
util: Added 'const' attribute to function parameters
This commit is contained in:
1 parent
d44aa97243
commit
5d03c455fc
8 files changed
+27
-27
No files matched your search
@@ -44,7 +44,7 @@ typedef struct {
|
||||
} WMConfigMenuEntry;
|
||||
|
||||
static Bool wmc_to_wm(WMConfigMenuEntry **wmc, WMMenuEntry **wm);
|
||||
static void parse_wmconfig_line(char **label, char **key, char **value, char *line);
|
||||
static void parse_wmconfig_line(char **label, char **key, char **value, const char *line);
|
||||
static void init_wmconfig_storage(WMConfigMenuEntry **wmc);
|
||||
|
||||
void parse_wmconfig(const char *file, void (*addWMMenuEntryCallback)(WMMenuEntry *aEntry))
|
||||
@@ -170,12 +170,12 @@ Bool wmconfig_validate_file(const char *filename, const struct stat *st, int tfl
|
||||
}
|
||||
|
||||
/* get a line allocating label, key and value as necessary */
|
||||
static void parse_wmconfig_line(char **label, char **key, char **value, char *line)
|
||||
static void parse_wmconfig_line(char **label, char **key, char **value, const char *line)
|
||||
{
|
||||
char *p;
|
||||
const char *p;
|
||||
int kstart, kend;
|
||||
|
||||
p = (char *)line;
|
||||
p = line;
|
||||
*label = *key = *value = NULL;
|
||||
kstart = kend = 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user