Przeglądaj źródła

Move destructor attribute tag

Eric Andersen 23 lat temu
rodzic
commit
f0f4b35394
2 zmienionych plików z 2 dodań i 6 usunięć
  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"
 	"Unable to resolve symbol"
 };
 };
 
 
-static void dl_cleanup(void) __attribute__ ((destructor));
+static void __attribute__ ((destructor)) dl_cleanup(void)
-
-static void dl_cleanup(void)
 {
 {
 	struct dyn_elf *d;
 	struct dyn_elf *d;
 
 

+ 1 - 3
ldso/libdl/libdl.c

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