瀏覽代碼

Move destructor attribute tag

Eric Andersen 22 年之前
父節點
當前提交
f0f4b35394
共有 2 個文件被更改,包括 2 次插入6 次删除
  1. 1 3
      ldso/libdl/dlib.c
  2. 1 3
      ldso/libdl/libdl.c

+ 1 - 3
ldso/libdl/dlib.c

@@ -85,9 +85,7 @@ static const char *dl_error_names[] = {
 	"Unable to resolve symbol"
 };
 
-static void dl_cleanup(void) __attribute__ ((destructor));
-
-static void dl_cleanup(void)
+static void __attribute__ ((destructor)) dl_cleanup(void)
 {
 	struct dyn_elf *d;
 

+ 1 - 3
ldso/libdl/libdl.c

@@ -85,9 +85,7 @@ static const char *dl_error_names[] = {
 	"Unable to resolve symbol"
 };
 
-static void dl_cleanup(void) __attribute__ ((destructor));
-
-static void dl_cleanup(void)
+static void __attribute__ ((destructor)) dl_cleanup(void)
 {
 	struct dyn_elf *d;