diff options
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/posix/src/shmheap.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/shmwkspace.c | 2 |
2 files changed, 2 insertions, 2 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; } diff --git a/cpukit/posix/src/shmwkspace.c b/cpukit/posix/src/shmwkspace.c index bcef3531ef..cfe4d01e59 100644 --- a/cpukit/posix/src/shmwkspace.c +++ b/cpukit/posix/src/shmwkspace.c @@ -90,6 +90,6 @@ void * _POSIX_Shm_Object_mmap_from_workspace( return NULL; } - return &(shm_obj->handle[off]); + return (char*)shm_obj->handle + off; } |