public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: libc-alpha@sourceware.org
Subject: [COMMITTED] elf: Fix tst-align3
Date: Tue, 18 Jan 2022 14:43:20 -0300	[thread overview]
Message-ID: <20220118174320.3303080-1-adhemerval.zanella@linaro.org> (raw)

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 --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>
-- 
2.32.0


                 reply	other threads:[~2022-01-18 17:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220118174320.3303080-1-adhemerval.zanella@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).