From ee3f0c551669ca1c61abac0888f93a27b0b17856 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 3 Jul 2016 16:19:28 -0400 Subject: make brace placement in public header typedef'd structs consistent commit befa5866ee30d09c0c96e88af2eabff5911342ea performed this change for struct definitions that did not also involve typedef, but omitted the latter. --- include/elf.h | 18 ++++++------------ include/sys/select.h | 3 +-- include/wordexp.h | 3 +-- 3 files changed, 8 insertions(+), 16 deletions(-) (limited to 'include') diff --git a/include/elf.h b/include/elf.h index 8ecf965a..0721d63f 100644 --- a/include/elf.h +++ b/include/elf.h @@ -324,15 +324,13 @@ typedef struct { #define SHF_ORDERED (1 << 30) #define SHF_EXCLUDE (1U << 31) -typedef struct -{ +typedef struct { Elf32_Word ch_type; Elf32_Word ch_size; Elf32_Word ch_addralign; } Elf32_Chdr; -typedef struct -{ +typedef struct { Elf64_Word ch_type; Elf64_Word ch_reserved; Elf64_Xword ch_size; @@ -434,8 +432,7 @@ typedef struct { -typedef struct -{ +typedef struct { Elf32_Addr r_offset; Elf32_Word r_info; } Elf32_Rel; @@ -1513,8 +1510,7 @@ typedef struct { -typedef struct -{ +typedef struct { Elf32_Word l_name; Elf32_Word l_time_stamp; Elf32_Word l_checksum; @@ -1522,8 +1518,7 @@ typedef struct Elf32_Word l_flags; } Elf32_Lib; -typedef struct -{ +typedef struct { Elf64_Word l_name; Elf64_Word l_time_stamp; Elf64_Word l_checksum; @@ -1546,8 +1541,7 @@ typedef struct typedef Elf32_Addr Elf32_Conflict; -typedef struct -{ +typedef struct { Elf32_Half version; unsigned char isa_level; unsigned char isa_rev; diff --git a/include/sys/select.h b/include/sys/select.h index e25257d2..d34cbf10 100644 --- a/include/sys/select.h +++ b/include/sys/select.h @@ -19,8 +19,7 @@ extern "C" { typedef unsigned long fd_mask; -typedef struct -{ +typedef struct { unsigned long fds_bits[FD_SETSIZE / 8 / sizeof(long)]; } fd_set; diff --git a/include/wordexp.h b/include/wordexp.h index d12081e8..5460002d 100644 --- a/include/wordexp.h +++ b/include/wordexp.h @@ -18,8 +18,7 @@ extern "C" { #define WRDE_SHOWERR 16 #define WRDE_UNDEF 32 -typedef struct -{ +typedef struct { size_t we_wordc; char **we_wordv; size_t we_offs; -- cgit v1.2.1