aboutsummaryrefslogtreecommitdiff
path: root/kconfig/conf.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-03-11 10:07:27 -0700
committerRob Landley <rob@landley.net>2020-03-11 20:24:04 -0500
commit8a68f6dd4021986e10760a3a36d453809ac4be36 (patch)
tree7bfef02c278db5ecc465945f08f23d32a43cb61a /kconfig/conf.c
parente400e605471a5bc6571623b4446c41bfc9eb4942 (diff)
downloadtoybox-8a68f6dd4021986e10760a3a36d453809ac4be36.tar.gz
vi: don't keep fd open unnecessarily.
As soon as mmap() is done, we can close the fd. xmmap() also will exit rather than return failure so we can remove that check, and fdlength() will fall back to lseek() so there's no need to have the fallback in vi itself. Spotted because the `TT.fd = 0` in linelist_unload() seemed suspicious; -1 would have been more natural.
Diffstat (limited to 'kconfig/conf.c')
0 files changed, 0 insertions, 0 deletions