diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-09-28 23:24:57 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-25 12:10:34 +0100 |
commit | 4dc07c3a9a1f9d0eb339baceed7bac3acef1c0ac (patch) | |
tree | 8ab11eb4f9207c12b086a145fab41b8bd0b3b404 /src/partition | |
parent | list: add LIST_POP() helper that pops the first item off a linked list (diff) | |
download | systemd-4dc07c3a9a1f9d0eb339baceed7bac3acef1c0ac.tar.xz systemd-4dc07c3a9a1f9d0eb339baceed7bac3acef1c0ac.zip |
repart,homed: split out disk cleanup macros into generic header
Diffstat (limited to 'src/partition')
-rw-r--r-- | src/partition/repart.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/partition/repart.c b/src/partition/repart.c index 5e6e88df94..50b1f45315 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -6,7 +6,6 @@ #include <fcntl.h> #include <getopt.h> -#include <libfdisk.h> #include <linux/fs.h> #include <linux/loop.h> #include <sys/file.h> @@ -31,6 +30,7 @@ #include "efivars.h" #include "errno-util.h" #include "fd-util.h" +#include "fdisk-util.h" #include "fileio.h" #include "format-table.h" #include "format-util.h" @@ -1420,11 +1420,6 @@ static int context_read_definitions( return 0; } -DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct fdisk_context*, fdisk_unref_context, NULL); -DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct fdisk_partition*, fdisk_unref_partition, NULL); -DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct fdisk_parttype*, fdisk_unref_parttype, NULL); -DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct fdisk_table*, fdisk_unref_table, NULL); - static int determine_current_padding( struct fdisk_context *c, struct fdisk_table *t, |