Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions sources/closedir.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

int closedir(DIR *dirp)
{
long r;

/* The GNU libc closedir returns gracefully if a NULL pointer is
passed. We follow here. */
if (dirp == NULL)
Expand All @@ -36,5 +34,5 @@ int closedir(DIR *dirp)

free(dirp->dirname);
free(dirp);
return r;
return 0;
}
Loading