summaryrefslogtreecommitdiff
path: root/src/shared/conf-parser.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 21:03:11 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 22:34:40 -0400
commite9f3d2d508bfd9fb5b54e82994bda365a71eb864 (patch)
tree5cbc33e5f3b497641e5c8818ced20feb8c94780b /src/shared/conf-parser.c
parent8201af08fa09c2bd0f005fbe262f27e2c5bd2d86 (diff)
Constify ConfigTableItem tables
Diffstat (limited to 'src/shared/conf-parser.c')
-rw-r--r--src/shared/conf-parser.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index 158e9efd4c..1f40986649 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -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) {