ditch the priority inheritance locks; use malloc's version of lock
[musl] / src / dirent / rewinddir.c
index c6138f7..f205300 100644 (file)
@@ -5,9 +5,9 @@
 
 void rewinddir(DIR *dir)
 {
-       LOCK(&dir->lock);
+       LOCK(dir->lock);
        lseek(dir->fd, 0, SEEK_SET);
        dir->buf_pos = dir->buf_end = 0;
        dir->tell = 0;
-       UNLOCK(&dir->lock);
+       UNLOCK(dir->lock);
 }