diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2020-12-23 07:03:42 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2020-12-23 07:03:42 +0530 |
commit | be37b807053d7bd4b33b9d74dc97860fc58335d5 (patch) | |
tree | 020484085c5dc368089356cebf3db9f91a6df3a9 /misc | |
parent | 0e981d352489535060be59b816af6e654fdcc1e2 (diff) | |
download | glibc-be37b807053d7bd4b33b9d74dc97860fc58335d5.zip glibc-be37b807053d7bd4b33b9d74dc97860fc58335d5.tar.gz glibc-be37b807053d7bd4b33b9d74dc97860fc58335d5.tar.bz2 |
misc: Use __ferror_unlocked instead of ferror
The ferror results in an unnecessary PLT reference. Use
__ferror_unlocked instead , which gets inlined.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/mntent_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/mntent_r.c b/misc/mntent_r.c index 39fa08f..b963c9a 100644 --- a/misc/mntent_r.c +++ b/misc/mntent_r.c @@ -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); |