]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: drop doubled space
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Aug 2022 19:40:38 +0000 (04:40 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 22 Aug 2022 15:00:38 +0000 (17:00 +0200)
src/partition/repart.c

index f44e239b37d6e622d806eb8fcde0196d525f0402..8824c105ffc8dcd0f7b84cc24de3aeed81e80af9 100644 (file)
@@ -1466,7 +1466,7 @@ static int determine_current_padding(
         offset *= secsz;
 
         n_partitions = fdisk_table_get_nents(t);
-        for (size_t i = 0; i < n_partitions; i++)  {
+        for (size_t i = 0; i < n_partitions; i++) {
                 struct fdisk_partition *q;
                 uint64_t start;
 
@@ -1731,7 +1731,7 @@ static int context_load_partition_table(
                 return log_error_errno(r, "Failed to acquire partition table: %m");
 
         n_partitions = fdisk_table_get_nents(t);
-        for (size_t i = 0; i < n_partitions; i++)  {
+        for (size_t i = 0; i < n_partitions; i++) {
                 _cleanup_free_ char *label_copy = NULL;
                 Partition *last = NULL;
                 struct fdisk_partition *p;
@@ -2804,7 +2804,7 @@ static int context_copy_blocks(Context *context) {
                                 return log_error_errno(errno, "Failed to lock LUKS device: %m");
 
                         target_fd = encrypted_dev_fd;
-                }  else {
+                } else {
                         if (lseek(whole_fd, p->offset, SEEK_SET) == (off_t) -1)
                                 return log_error_errno(errno, "Failed to seek to partition offset: %m");
 
@@ -3115,7 +3115,7 @@ static int partition_acquire_uuid(Context *context, Partition *p, sd_id128_t *re
         struct {
                 sd_id128_t type_uuid;
                 uint64_t counter;
-        } _packed_  plaintext = {};
+        } _packed_ plaintext = {};
         union {
                 uint8_t md[SHA256_DIGEST_SIZE];
                 sd_id128_t id;