diff options
author | Gedare Bloom <gedare@rtems.org> | 2017-07-24 15:09:52 -0400 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2017-07-24 15:11:00 -0400 |
commit | c6d897e54489e061b25bdb08583b696421799cc2 (patch) | |
tree | 618491b5398ffc45780ea46cb2e9cae334b57367 /cpukit/posix/src/shmheap.c | |
parent | posix: replace mmap mappings lock with libio lock (diff) | |
download | rtems-c6d897e54489e061b25bdb08583b696421799cc2.tar.bz2 |
posix: fix warnings with mmap from heap/wkspace
Avoid void pointer arithmetic.
Updates #2859.
Diffstat (limited to 'cpukit/posix/src/shmheap.c')
-rw-r--r-- | cpukit/posix/src/shmheap.c | 2 |
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; } |