Constify ConfigTableItem tables

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-07-15 22:34:40 -04:00
parent 8201af08fa
commit e9f3d2d508
18 changed files with 33 additions and 30 deletions
+6 -6
View File
@@ -76,7 +76,7 @@ int log_syntax_internal(const char *unit, int level,
}
int config_item_table_lookup(
void *table,
const void *table,
const char *section,
const char *lvalue,
ConfigParserCallback *func,
@@ -84,7 +84,7 @@ int config_item_table_lookup(
void **data,
void *userdata) {
ConfigTableItem *t;
const ConfigTableItem *t;
assert(table);
assert(lvalue);
@@ -110,7 +110,7 @@ int config_item_table_lookup(
}
int config_item_perf_lookup(
void *table,
const void *table,
const char *section,
const char *lvalue,
ConfigParserCallback *func,
@@ -154,7 +154,7 @@ static int next_assignment(const char *unit,
const char *filename,
unsigned line,
ConfigItemLookup lookup,
void *table,
const void *table,
const char *section,
unsigned section_line,
const char *lvalue,
@@ -199,7 +199,7 @@ static int parse_line(const char* unit,
unsigned line,
const char *sections,
ConfigItemLookup lookup,
void *table,
const void *table,
bool relaxed,
bool allow_include,
char **section,
@@ -323,7 +323,7 @@ int config_parse(const char *unit,
FILE *f,
const char *sections,
ConfigItemLookup lookup,
void *table,
const void *table,
bool relaxed,
bool allow_include,
void *userdata) {