mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
tests: replace fread by xfread
With fortification enabled, fread calls return result needs to be checked, has it gets the __wur macro enabled. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
committed by
Siddhesh Poyarekar
parent
127c21c0e2
commit
a84dcb4bdf
@@ -27,6 +27,7 @@ __BEGIN_DECLS
|
||||
FILE *xfopen (const char *path, const char *mode);
|
||||
void xfclose (FILE *);
|
||||
FILE *xfreopen (const char *path, const char *mode, FILE *stream);
|
||||
void xfread (void *ptr, size_t size, size_t nmemb, FILE *stream);
|
||||
|
||||
/* Read a line from FP, using getline. *BUFFER must be NULL, or a
|
||||
heap-allocated pointer of *LENGTH bytes. Return the number of
|
||||
|
Reference in New Issue
Block a user