summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2004-08-14 17:46:10 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2004-08-14 17:46:10 +0000
commit4eae39bfdf5f9d66699e50c10b996e75a902d344 (patch)
treebe6242cdf28f91c19a82810c41a57128a3771413 /lib/libc
parent6cbea71c828c3ff2fb612997fd1ec0cf66f17393 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/opendir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/opendir.c b/lib/libc/gen/opendir.c
index 3b6f1a0a2f8f..c076abb63b6c 100644
--- a/lib/libc/gen/opendir.c
+++ b/lib/libc/gen/opendir.c
@@ -97,7 +97,7 @@ __opendir2(name, flags)
(dirp = malloc(sizeof(DIR) + sizeof(struct _telldir))) == NULL)
goto fail;
- dirp->dd_td = (void *)dirp + sizeof(DIR);
+ dirp->dd_td = (struct _telldir *)((char *)dirp + sizeof(DIR));
LIST_INIT(&dirp->dd_td->td_locq);
dirp->dd_td->td_loccnt = 0;