summaryrefslogtreecommitdiffstats
path: root/src/shared/hibernate-util.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-10-31 13:54:33 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-11-02 23:20:57 +0100
commitd5c12da904872671e98c991f33e8e80fd9c3db8e (patch)
treeb85762a80bd560e1e93e48729565c573523a6303 /src/shared/hibernate-util.c
parentask-password: Add $SYSTEMD_ASK_PASSWORD_KEYRING_TYPE (diff)
downloadsystemd-d5c12da904872671e98c991f33e8e80fd9c3db8e.tar.xz
systemd-d5c12da904872671e98c991f33e8e80fd9c3db8e.zip
efivars: Remove STRINGIFY() helper macros
The names of these conflict with macros from efi.h that we'll move to efi-fundamental.h in a later commit. Let's avoid the conflict by getting rid of these helpers. Arguably this also improves readability by clearly indicating we're passing arbitrary strings and not constants to the macros when we invoke them.
Diffstat (limited to 'src/shared/hibernate-util.c')
-rw-r--r--src/shared/hibernate-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/hibernate-util.c b/src/shared/hibernate-util.c
index 7c21157580..1213fdc2c7 100644
--- a/src/shared/hibernate-util.c
+++ b/src/shared/hibernate-util.c
@@ -527,7 +527,7 @@ int clear_efi_hibernate_location_and_warn(void) {
if (!is_efi_boot())
return 0;
- r = efi_set_variable(EFI_SYSTEMD_VARIABLE(HibernateLocation), NULL, 0);
+ r = efi_set_variable(EFI_SYSTEMD_VARIABLE_STR("HibernateLocation"), NULL, 0);
if (r == -ENOENT)
return 0;
if (r < 0)