[Libreoffice-commits] core.git: sal/osl

David Tardon dtardon at redhat.com
Thu Sep 26 04:06:42 PDT 2013


 sal/osl/unx/mutex.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 92db3f7c397ba5508daa386e19caf2b1661ec4b4
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Sep 26 13:04:23 2013 +0200

    malloc returns void*; must be cast to real ptr type
    
    Change-Id: Ic19707b99b1a53005ac319887219fc52b3e60e89

diff --git a/sal/osl/unx/mutex.c b/sal/osl/unx/mutex.c
index b894758..b2afa29 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;
 


More information about the Libreoffice-commits mailing list