diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-15 21:03:11 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-15 22:34:40 -0400 |
commit | e9f3d2d508bfd9fb5b54e82994bda365a71eb864 (patch) | |
tree | 5cbc33e5f3b497641e5c8818ced20feb8c94780b /src/core | |
parent | 8201af08fa09c2bd0f005fbe262f27e2c5bd2d86 (diff) |
Constify ConfigTableItem tables
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/load-dropin.c | 2 | ||||
-rw-r--r-- | src/core/load-fragment.c | 2 | ||||
-rw-r--r-- | src/core/main.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/load-dropin.c b/src/core/load-dropin.c index 6ff592be8b..66547cf4bc 100644 --- a/src/core/load-dropin.c +++ b/src/core/load-dropin.c @@ -187,7 +187,7 @@ int unit_load_dropin(Unit *u) { STRV_FOREACH(f, u->dropin_paths) { config_parse(u->id, *f, NULL, UNIT_VTABLE(u)->sections, config_item_perf_lookup, - (void*) load_fragment_gperf_lookup, false, false, u); + load_fragment_gperf_lookup, false, false, u); } u->dropin_mtime = now(CLOCK_REALTIME); diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index b6894d22ae..54010b804e 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -3370,7 +3370,7 @@ static int load_from_path(Unit *u, const char *path) { /* Now, parse the file contents */ r = config_parse(u->id, filename, f, UNIT_VTABLE(u)->sections, config_item_perf_lookup, - (void*) load_fragment_gperf_lookup, false, true, u); + load_fragment_gperf_lookup, false, true, u); if (r < 0) return r; } diff --git a/src/core/main.c b/src/core/main.c index a21a959be9..d1fb265df1 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -696,7 +696,7 @@ static int parse_config_file(void) { return 0; } - r = config_parse(NULL, fn, f, "Manager\0", config_item_table_lookup, (void*) items, false, false, NULL); + r = config_parse(NULL, fn, f, "Manager\0", config_item_table_lookup, items, false, false, NULL); if (r < 0) log_warning("Failed to parse configuration file: %s", strerror(-r)); |