public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Siddhesh Poyarekar <siddhesh@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Fix warn unused result Date: Thu, 22 Jun 2023 04:53:57 +0000 (GMT) [thread overview] Message-ID: <20230622045357.1C22C385841D@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d636339306d19beb486d6f3a0b364db845baf4e0 commit d636339306d19beb486d6f3a0b364db845baf4e0 Author: Frederic Berat <fberat@redhat.com> Date: Tue Jun 20 20:19:08 2023 +0200 sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Fix warn unused result The fread routine return value needs to be checked when fortification is enabled, hence use xfread helper. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org> Diff: --- sysdeps/powerpc/fpu/tst-setcontext-fpscr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sysdeps/powerpc/fpu/tst-setcontext-fpscr.c b/sysdeps/powerpc/fpu/tst-setcontext-fpscr.c index 2fd8838bbe..2eba5f2672 100644 --- a/sysdeps/powerpc/fpu/tst-setcontext-fpscr.c +++ b/sysdeps/powerpc/fpu/tst-setcontext-fpscr.c @@ -27,6 +27,8 @@ #include <sys/auxv.h> #include <support/support.h> +#include <support/xstdio.h> + static ucontext_t ctx[3]; @@ -61,7 +63,7 @@ ElfW(Addr) query_auxv(int type) do { - fread (&auxv_struct, sizeof (ElfW(auxv_t)), 1, auxv_f); + xfread (&auxv_struct, sizeof (ElfW(auxv_t)), 1, auxv_f); auxv[i] = auxv_struct; i++; } while(auxv_struct.a_type != AT_NULL);
reply other threads:[~2023-06-22 4:53 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=20230622045357.1C22C385841D@sourceware.org \ --to=siddhesh@sourceware.org \ --cc=glibc-cvs@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: linkBe 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).