summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/shmheap.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/shmheap.c')
-rw-r--r--cpukit/posix/src/shmheap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/shmheap.c b/cpukit/posix/src/shmheap.c
index 47f5b4783a..b36fc28b4b 100644
--- a/cpukit/posix/src/shmheap.c
+++ b/cpukit/posix/src/shmheap.c
@@ -105,6 +105,6 @@ void * _POSIX_Shm_Object_mmap_from_heap(
return NULL;
}
- return &(shm_obj->handle[off]);
+ return (char*)shm_obj->handle + off;
}