X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fnmem.c;h=7e3fc1bbcb1cfc91815e47b3ce8096789a9328cd;hb=3d18b35078096b9fd1feb8e2d6fd7e9e48755ad5;hp=d337d3fc9cca476f4aac71de3754eafa43c6d890;hpb=a9407df0295ee7745827b2f053b3f4698857720d;p=yaz-moved-to-github.git diff --git a/util/nmem.c b/util/nmem.c index d337d3f..7e3fc1b 100644 --- a/util/nmem.c +++ b/util/nmem.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: nmem.c,v $ - * Revision 1.25 2001-06-26 14:11:27 adam + * Revision 1.26 2001-07-19 19:51:42 adam + * Added typecasts to make C++ happy. + * + * Revision 1.25 2001/06/26 14:11:27 adam * Added MUTEX functions for NMEM module (used by OID utility). * * Revision 1.24 2000/05/11 14:37:55 adam @@ -144,7 +147,7 @@ YAZ_EXPORT void nmem_mutex_create(NMEM_MUTEX *p) NMEM_ENTER; if (!*p) { - *p = malloc (sizeof(**p)); + *p = (NMEM_MUTEX) malloc (sizeof(**p)); #ifdef WIN32 InitializeCriticalSection(&(*p)->m_handle); #elif _REENTRANT