diff options
author | Colin Walters <walters@verbum.org> | 2017-10-16 14:09:39 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2017-10-16 18:06:53 -0400 |
commit | 771d7a01d1104bbb8240cb29393314c7a4a69c4d (patch) | |
tree | aac733372fe9e87fdcae2379be38a5087716f941 /glnx-shutil.c | |
parent | e627524af9ae499c1edd04795442f8bdb05b5223 (diff) | |
download | libglnx-771d7a01d1104bbb8240cb29393314c7a4a69c4d.tar.gz |
tree-wide: Use glnx_autofd and glnx_close_fd()
Port to `glnx_autofd` tree wide, and add one missed `glnx_close_fd()` use in the
tmpfile code.
Diffstat (limited to 'glnx-shutil.c')
-rw-r--r-- | glnx-shutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-shutil.c b/glnx-shutil.c index 8438b5d..8014c0c 100644 --- a/glnx-shutil.c +++ b/glnx-shutil.c @@ -84,7 +84,7 @@ glnx_shutil_rm_rf_at (int dfd, GCancellable *cancellable, GError **error) { - glnx_fd_close int target_dfd = -1; + glnx_autofd int target_dfd = -1; g_auto(GLnxDirFdIterator) dfd_iter = { 0, }; dfd = glnx_dirfd_canonicalize (dfd); |