diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-09-18 18:00:41 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-13 19:44:47 +0200 |
commit | 1308f72e831dcb634e7798c125611808f8b76cff (patch) | |
tree | cbbe805b07a6a3dfde473043a592855fd0124e87 /src/test/test-install.c | |
parent | shared/install: rename UnitFileInstallInfo.type to .install_mode (diff) | |
download | systemd-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.c | 4 |
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); } } |