X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fdirent%2Fseekdir.c;fp=src%2Fdirent%2Fseekdir.c;h=5be47d4a15564178eb84e73a0d9a9569fd8b30b3;hp=81a0e33189e0965cc5e4ef85e1cd7274035731aa;hb=4750cf4202c29a895639b89099a7bdbe9ae422b6;hpb=e7655ed37bc9c2d79d921af4f287ee5cf2788661 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); }