]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Fix tst-align3
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 18 Jan 2022 17:36:45 +0000 (14:36 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 18 Jan 2022 17:38:15 +0000 (14:38 -0300)
The elf/tst-align3.c declares the function using a wrong prototype.

Checked on aarch64-linux-gnu.

elf/tst-align3.c

index 4913c266106e350e7371c8c014ad3e8f08bd6cd9..6853b6ebb189bcadb82bba1d2dfb155bd8e0fe8b 100644 (file)
@@ -22,7 +22,7 @@
 
 int bar __attribute__ ((aligned (ALIGN))) = 1;
 
-extern int do_load_test (void);
+extern void do_load_test (void);
 
 static int
 do_test (void)
@@ -30,7 +30,8 @@ do_test (void)
   printf ("bar: %p\n", &bar);
   TEST_VERIFY (is_aligned (&bar, ALIGN) == 0);
 
-  return do_load_test ();
+  do_load_test ();
+  return 0;
 }
 
 #include <support/test-driver.c>