summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-09-26 13:04:23 +0200
committerDavid Tardon <dtardon@redhat.com>2013-09-26 13:05:02 +0200
commit92db3f7c397ba5508daa386e19caf2b1661ec4b4 (patch)
treeba1ca0460a57e04ff27250e1fef585ee66db56fb /sal
parent8738ded7bb1bb6262fe1038e310b5110407f4cfa (diff)
malloc returns void*; must be cast to real ptr type
Change-Id: Ic19707b99b1a53005ac319887219fc52b3e60e89
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/mutex.c b/sal/osl/unx/mutex.c
index b894758c9795..b2afa29c1116 100644
--- a/sal/osl/unx/mutex.c
+++ b/sal/osl/unx/mutex.c
@@ -42,7 +42,7 @@ typedef struct _oslMutexImpl
/*****************************************************************************/
oslMutex SAL_CALL osl_createMutex()
{
- oslMutexImpl* pMutex = malloc(sizeof(oslMutexImpl));
+ oslMutexImpl* pMutex = (oslMutexImpl*) malloc(sizeof(oslMutexImpl));
pthread_mutexattr_t aMutexAttr;
int nRet=0;