mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
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>
This commit is contained in:
parent
131af38694
commit
d636339306
1 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,8 @@
|
||||||
#include <sys/auxv.h>
|
#include <sys/auxv.h>
|
||||||
#include <support/support.h>
|
#include <support/support.h>
|
||||||
|
|
||||||
|
#include <support/xstdio.h>
|
||||||
|
|
||||||
static ucontext_t ctx[3];
|
static ucontext_t ctx[3];
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,7 +63,7 @@ ElfW(Addr) query_auxv(int type)
|
||||||
|
|
||||||
do
|
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;
|
auxv[i] = auxv_struct;
|
||||||
i++;
|
i++;
|
||||||
} while(auxv_struct.a_type != AT_NULL);
|
} while(auxv_struct.a_type != AT_NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue