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