summaryrefslogtreecommitdiff
path: root/libc/misc/dirent/rewinddir.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/dirent/rewinddir.c')
-rw-r--r--libc/misc/dirent/rewinddir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/dirent/rewinddir.c b/libc/misc/dirent/rewinddir.c
index 9d147fca2..2fff9101c 100644
--- a/libc/misc/dirent/rewinddir.c
+++ b/libc/misc/dirent/rewinddir.c
@@ -7,7 +7,7 @@
void rewinddir(DIR * dir)
{
if (!dir) {
- errno = EBADF;
+ __set_errno(EBADF);
return;
}
lseek(dir->dd_fd, 0, SEEK_SET);