summaryrefslogtreecommitdiffstats
path: root/src/cryptenroll/cryptenroll-wipe.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-05-28 15:33:44 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-05-31 23:47:48 +0200
commit5d2a48da126e696dcd61baa75911d7f5fb2d076c (patch)
treebbc8aac0bd238dfd42fd29fc82d6e7e099ae976f /src/cryptenroll/cryptenroll-wipe.c
parentoomd: drop unused key (diff)
downloadsystemd-5d2a48da126e696dcd61baa75911d7f5fb2d076c.tar.xz
systemd-5d2a48da126e696dcd61baa75911d7f5fb2d076c.zip
tree-wide: use _cleanup_set_free_ and friends
Instead of _cleanup_(set_freep) or so.
Diffstat (limited to 'src/cryptenroll/cryptenroll-wipe.c')
-rw-r--r--src/cryptenroll/cryptenroll-wipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptenroll/cryptenroll-wipe.c b/src/cryptenroll/cryptenroll-wipe.c
index 8042a0fe83..314ebd3113 100644
--- a/src/cryptenroll/cryptenroll-wipe.c
+++ b/src/cryptenroll/cryptenroll-wipe.c
@@ -88,7 +88,7 @@ static int find_slots_by_mask(
Set *keep_slots,
unsigned by_mask) {
- _cleanup_(set_freep) Set *listed_slots = NULL;
+ _cleanup_set_free_ Set *listed_slots = NULL;
int r;
assert(cd);
@@ -301,7 +301,7 @@ int wipe_slots(struct crypt_device *cd,
unsigned by_mask,
int except_slot) {
- _cleanup_(set_freep) Set *wipe_slots = NULL, *wipe_tokens = NULL, *keep_slots = NULL;
+ _cleanup_set_free_ Set *wipe_slots = NULL, *wipe_tokens = NULL, *keep_slots = NULL;
_cleanup_free_ int *ordered_slots = NULL, *ordered_tokens = NULL;
size_t n_ordered_slots = 0, n_ordered_tokens = 0;
int r, slot_max, ret;