shared/install: rename UnitFileChange to InstallChange
It's shorter and more generic. The struct can contain info about changes to unit files, but also symlinks and errors.
This commit is contained in:
@@ -1599,7 +1599,7 @@ static int start_machine(int argc, char *argv[], void *userdata) {
|
||||
static int enable_machine(int argc, char *argv[], void *userdata) {
|
||||
_cleanup_(sd_bus_message_unrefp) sd_bus_message *m = NULL, *reply = NULL;
|
||||
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||
UnitFileChange *changes = NULL;
|
||||
InstallChange *changes = NULL;
|
||||
size_t n_changes = 0;
|
||||
const char *method = NULL;
|
||||
sd_bus *bus = ASSERT_PTR(userdata);
|
||||
@@ -1671,7 +1671,7 @@ static int enable_machine(int argc, char *argv[], void *userdata) {
|
||||
r = 0;
|
||||
|
||||
finish:
|
||||
unit_file_changes_free(changes, n_changes);
|
||||
install_changes_free(changes, n_changes);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user