diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-26 15:01:37 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-26 15:01:37 +0000 |
commit | b63759b175cf9ddd9735ca0d2f803fe62f69c3c3 (patch) | |
tree | a583febda46545afc4ed20ccbdbed0ae3165a5c4 /osdep | |
parent | fad137d7fe3bfef6a258518a1e86a4d811d3b4b5 (diff) |
Do not cast the results of malloc/calloc/realloc.
These functions return void*, which is compatible with any pointer,
so there is no need for casts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30744 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/mmap-os2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/mmap-os2.c b/osdep/mmap-os2.c index 7646296cd9..a1e0c29e3f 100644 --- a/osdep/mmap-os2.c +++ b/osdep/mmap-os2.c @@ -84,7 +84,7 @@ void *mmap( void *addr, size_t len, int prot, int flags, int fildes, off_t off ) return MAP_FAILED; } - new_mmap = ( os2_mmap * )malloc( sizeof( os2_mmap )); + new_mmap = malloc( sizeof( os2_mmap )); new_mmap->addr = ret; new_mmap->len = len; new_mmap->flags = flags; |