chiark / gitweb /
Constify ConfigTableItem tables
[elogind.git] / src / core / load-dropin.c
index f2ffc9781ec95a7d3eb829582bc630a3da91089d..66547cf4bcd8dfd97633d587a889cfc281f7b656 100644 (file)
@@ -102,7 +102,6 @@ static int process_dir(
                 char ***strv) {
 
         _cleanup_free_ char *path = NULL;
-        int r, q;
 
         assert(u);
         assert(unit_path);
@@ -167,7 +166,6 @@ char **unit_find_dropin_paths(Unit *u) {
 int unit_load_dropin(Unit *u) {
         Iterator i;
         char *t, **f;
-        int r;
 
         assert(u);
 
@@ -189,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);