chiark / gitweb /
Constify ConfigTableItem tables
[elogind.git] / src / dbus1-generator / dbus1-generator.c
index 95962c73c1f8d8cd3af8a0abb23a6d4a93283713..ba2953014d73aa790ee687ff6ebd65e46e44eaa8 100644 (file)
@@ -156,7 +156,7 @@ static int create_dbus_files(
 static int add_dbus(const char *path, const char *fname, const char *type) {
         _cleanup_free_ char *name = NULL, *exec = NULL, *user = NULL, *service = NULL;
 
-        ConfigTableItem table[] = {
+        const ConfigTableItem table[] = {
                 { "D-BUS Service", "Name", config_parse_string, 0, &name },
                 { "D-BUS Service", "Exec", config_parse_string, 0, &exec },
                 { "D-BUS Service", "User", config_parse_string, 0, &user },