From bcdeb8e73ca7fe84a2caa06a504cae1e779e25af Mon Sep 17 00:00:00 2001 From: stefanf Date: Sat, 14 Aug 2004 17:46:10 +0000 Subject: Avoid using void pointers in additive expressions. PR: 56653 --- lib/libc/gen/opendir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/gen/opendir.c') diff --git a/lib/libc/gen/opendir.c b/lib/libc/gen/opendir.c index 3b6f1a0..c076abb 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; -- cgit v1.1