mirror of git://sourceware.org/git/glibc.git
misc: Use __ferror_unlocked instead of ferror
The ferror results in an unnecessary PLT reference. Use __ferror_unlocked instead , which gets inlined.
This commit is contained in:
parent
0e981d3524
commit
be37b80705
|
@ -253,7 +253,7 @@ __addmntent (FILE *stream, const struct mntent *mnt)
|
|||
write_string (stream, mnt->mnt_opts);
|
||||
fprintf (stream, "%d %d\n", mnt->mnt_freq, mnt->mnt_passno);
|
||||
|
||||
ret = ferror (stream) != 0 || fflush (stream) != 0;
|
||||
ret = __ferror_unlocked (stream) != 0 || fflush (stream) != 0;
|
||||
|
||||
funlockfile (stream);
|
||||
|
||||
|
|
Loading…
Reference in New Issue