mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-27 04:35:52 +01:00
util: Added 'const' attribute to function parameters
This commit is contained in:
committed by
Carlos R. Mafra
parent
d44aa97243
commit
5d03c455fc
@@ -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