diff mbox series

[COMMITTED] elf: Fix tst-align3

Message ID 20220118174320.3303080-1-adhemerval.zanella@linaro.org
State Committed
Commit 716c4027b04db785034b0f67ac552cfaff360463
Headers show
Series [COMMITTED] elf: Fix tst-align3 | expand

Commit Message

Adhemerval Zanella Jan. 18, 2022, 5:43 p.m. UTC
The elf/tst-align3.c declares the function using a wrong prototype.

Checked on aarch64-linux-gnu.
---
 elf/tst-align3.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/elf/tst-align3.c b/elf/tst-align3.c
index 4913c26610..6853b6ebb1 100644
--- a/elf/tst-align3.c
+++ b/elf/tst-align3.c
@@ -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>