diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-10-31 13:54:33 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-11-02 23:20:57 +0100 |
commit | d5c12da904872671e98c991f33e8e80fd9c3db8e (patch) | |
tree | b85762a80bd560e1e93e48729565c573523a6303 /src/shared/hibernate-util.c | |
parent | ask-password: Add $SYSTEMD_ASK_PASSWORD_KEYRING_TYPE (diff) | |
download | systemd-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.c | 2 |
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) |