Skip to content
Snippets Groups Projects
Commit 70b070b5 authored by Colin Walters's avatar Colin Walters
Browse files

dirfd: Fix two typos

parent 0885d673
Branches
Tags
No related merge requests found
...@@ -103,7 +103,7 @@ glnx_dirfd_iterator_init_at (int dfd, ...@@ -103,7 +103,7 @@ glnx_dirfd_iterator_init_at (int dfd,
if (!glnx_opendirat (dfd, path, follow, &fd, error)) if (!glnx_opendirat (dfd, path, follow, &fd, error))
goto out; goto out;
if (!glnx_dirfd_iterator_init_take_fd (fd, dfd_iter, error)) if (!glnx_dirfd_iterator_init_take_fd (fd, out_dfd_iter, error))
goto out; goto out;
fd = -1; /* Transfer ownership */ fd = -1; /* Transfer ownership */
...@@ -196,7 +196,7 @@ glnx_dirfd_iterator_next_dent (GLnxDirFdIterator *dfd_iter, ...@@ -196,7 +196,7 @@ glnx_dirfd_iterator_next_dent (GLnxDirFdIterator *dfd_iter,
void void
glnx_dirfd_iterator_clear (GLnxDirFdIterator *dfd_iter) glnx_dirfd_iterator_clear (GLnxDirFdIterator *dfd_iter)
{ {
GLnxRealDirfdIterator *real_dfd_iter = (GLnxRealDirIterator*) dfd_iter; GLnxRealDirfdIterator *real_dfd_iter = (GLnxRealDirfdIterator*) dfd_iter;
/* fd is owned by dfd_iter */ /* fd is owned by dfd_iter */
(void) closedir (real_dfd_iter->d); (void) closedir (real_dfd_iter->d);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment