]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
efi: avoid weirdly double }} by indenting differently
authorLennart Poettering <lennart@poettering.net>
Tue, 26 May 2020 20:25:54 +0000 (22:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 May 2020 13:41:03 +0000 (15:41 +0200)
src/shared/efi-loader.c

index c288176fd186b2f340b7c7700eb755e0204176ea..d751d3f242c6e7a882f43be659f875e89f1585c3 100644 (file)
 #define END_ENTIRE_DEVICE_PATH_SUBTYPE      0xff
 #define EFI_OS_INDICATIONS_BOOT_TO_FW_UI    0x0000000000000001
 
-#define boot_option__contents {                 \
-        uint32_t attr;                          \
-        uint16_t path_len;                      \
-        uint16_t title[];                       \
+#define boot_option__contents                   \
+        {                                       \
+                uint32_t attr;                  \
+                uint16_t path_len;              \
+                uint16_t title[];               \
         }
 
 struct boot_option boot_option__contents;
@@ -49,21 +50,21 @@ struct drive_path {
         uint8_t signature_type;
 } _packed_;
 
-#define device_path__contents {                 \
-        uint8_t type;                           \
-        uint8_t sub_type;                       \
-        uint16_t length;                        \
-        union {                                 \
-                uint16_t path[0];               \
-                struct drive_path drive;        \
-        };                                      \
+#define device_path__contents                           \
+        {                                               \
+                uint8_t type;                           \
+                uint8_t sub_type;                       \
+                uint16_t length;                        \
+                union {                                 \
+                        uint16_t path[0];               \
+                        struct drive_path drive;        \
+                };                                      \
         }
 
 struct device_path device_path__contents;
 struct device_path__packed device_path__contents _packed_;
 assert_cc(sizeof(struct device_path) == sizeof(struct device_path__packed));
 
-
 int efi_reboot_to_firmware_supported(void) {
         _cleanup_free_ void *v = NULL;
         uint64_t b;