From: Lennart Poettering Date: Tue, 26 May 2020 20:25:54 +0000 (+0200) Subject: efi: avoid weirdly double }} by indenting differently X-Git-Tag: v246-rc1~235^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c25f42322b5bc382707a59fcc4b4a2d60766a5d;p=thirdparty%2Fsystemd.git efi: avoid weirdly double }} by indenting differently --- diff --git a/src/shared/efi-loader.c b/src/shared/efi-loader.c index c288176fd18..d751d3f242c 100644 --- a/src/shared/efi-loader.c +++ b/src/shared/efi-loader.c @@ -28,10 +28,11 @@ #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;