summaryrefslogtreecommitdiffstats
path: root/src/test/test-install.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-09-18 18:00:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-10-13 19:44:47 +0200
commit1308f72e831dcb634e7798c125611808f8b76cff (patch)
treecbbe805b07a6a3dfde473043a592855fd0124e87 /src/test/test-install.c
parentshared/install: rename UnitFileInstallInfo.type to .install_mode (diff)
downloadsystemd-1308f72e831dcb634e7798c125611808f8b76cff.tar.xz
systemd-1308f72e831dcb634e7798c125611808f8b76cff.zip
shared/install: rename 'unit_file_change_type' to 'install_change' + followups
We had an anonymous enum with values called UNIT_FILE_…, which could easily be confused with UNIT_FILE_… from UnitFileFlags enum. This commit renames the enum values and also the variables which refer to them.
Diffstat (limited to 'src/test/test-install.c')
-rw-r--r--src/test/test-install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-install.c b/src/test/test-install.c
index 95aeb77183..309b18c535 100644
--- a/src/test/test-install.c
+++ b/src/test/test-install.c
@@ -12,9 +12,9 @@ static void dump_changes(InstallChange *c, unsigned n) {
assert_se(n == 0 || c);
for (i = 0; i < n; i++) {
- if (c[i].type_or_errno == UNIT_FILE_UNLINK)
+ if (c[i].change_or_errno == INSTALL_CHANGE_UNLINK)
printf("rm '%s'\n", c[i].path);
- else if (c[i].type_or_errno == UNIT_FILE_SYMLINK)
+ else if (c[i].change_or_errno == INSTALL_CHANGE_SYMLINK)
printf("ln -s '%s' '%s'\n", c[i].source, c[i].path);
}
}