Remove two more uses of make_cleanup_close
authorTom Tromey <tom@tromey.com>
Thu, 7 Jun 2018 22:20:12 +0000 (16:20 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 9 Jun 2018 22:09:52 +0000 (16:09 -0600)
commit77ad7394454c29cc7a4a865cd226491df457f6f6
tree77bb9f15156be6ba0a314d35a11d2fb9c1247752
parent191cca638351fcaf9bee93a396bd4f8b74f915eb
Remove two more uses of make_cleanup_close

This removes two more uses of make_cleanup_close, replacing them with
relatively straightforward uses of scoped_fd.

Tested by the buildbot.

gdb/ChangeLog
2018-06-09  Tom Tromey  <tom@tromey.com>

* source.c (reverse_search_command, forward_search_command): Use
scoped_fd.
gdb/ChangeLog
gdb/source.c