Remove last cleanup from linux-namespaces.c
authorTom Tromey <tom@tromey.com>
Thu, 24 Jan 2019 13:43:45 +0000 (06:43 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 6 Mar 2019 23:04:31 +0000 (16:04 -0700)
commit6cceac94147f6026e93dcfc0a0df03555b571a12
treeae45737eb987a1c699bc1d05ae7c4366b821c716
parent724127627fef458ed330d027cf0b3d17580af615
Remove last cleanup from linux-namespaces.c

This removes the last cleanup from linux-namespaces.c, replacing it
with a use of SCOPE_EXIT.

2019-03-06  Tom Tromey  <tom@tromey.com>

* nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
* common/filestuff.h (make_cleanup_close): Don't declare.
* common/filestuff.c (do_close_cleanup, make_cleanup_close):
Remove.
gdb/ChangeLog
gdb/common/filestuff.c
gdb/common/filestuff.h
gdb/nat/linux-namespaces.c