about summary refs log tree commit diff
path: root/src/dirent/seekdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirent/seekdir.c')
-rw-r--r--src/dirent/seekdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dirent/seekdir.c b/src/dirent/seekdir.c
index 81a0e331..5be47d4a 100644
--- a/src/dirent/seekdir.c
+++ b/src/dirent/seekdir.c
@@ -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);
 }