Skip to contentSkip to conversation

format code

PATCH New ruoguang 1 participant 1 message Jul 28, 2021 Block layer

lore
Share & tools
lore

ruoguang

author
#0 lore raw

PATCH 1/1 format code

From: qwe624758472 <[email protected]>

---
 block/dmg-bz2.c   | 3 +--
 block/dmg-lzfse.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
block/dmg-bz2.c +1 -2
index 37f7ee04be..2022eafc81 100644
@@ -52,8 +52,7 @@ static int dmg_uncompress_bz2_do(char *next_in, unsigned int avail_in,
     return 0;
 }
 
-__attribute__((constructor))
-static void dmg_bz2_init(void)
+static void __attribute__((constructor)) dmg_bz2_init(void)
 {
     assert(!dmg_uncompress_bz2);
     dmg_uncompress_bz2 = dmg_uncompress_bz2_do;
block/dmg-lzfse.c +1 -2
index 6798cf4fbf..9438539352 100644
@@ -40,8 +40,7 @@ static int dmg_uncompress_lzfse_do(char *next_in, unsigned int avail_in,
     return -1;
 }
 
-__attribute__((constructor))
-static void dmg_lzfse_init(void)
+static void __attribute__((constructor)) dmg_lzfse_init(void)
 {
     assert(!dmg_uncompress_lzfse);
     dmg_uncompress_lzfse = dmg_uncompress_lzfse_do;
Signature · 1 line
2.20.1