X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fxmalloc.c;h=4264b24104635eeb05c7757b558c7c47c93146cc;hp=8fd0132fe68bcbe220df6943f140fd384e2cc218;hb=044d170f0a963555486df54653cd2fdc5815928b;hpb=6565e283922168b7a1284d0c4164f94c833f6301 diff --git a/util/xmalloc.c b/util/xmalloc.c index 8fd0132..4264b24 100644 --- a/util/xmalloc.c +++ b/util/xmalloc.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: xmalloc.c,v $ - * Revision 1.5 1997-10-31 12:20:09 adam + * Revision 1.6 1998-02-11 11:53:36 adam + * Changed code so that it compiles as C++. + * + * Revision 1.5 1997/10/31 12:20:09 adam * Improved memory debugging for xmalloc/nmem.c. References to NMEM * instead of ODR in n ESPEC-1 handling in source d1_espec.c. * Bug fix: missing fclose in data1_read_espec1. @@ -96,7 +99,7 @@ void *xcalloc_f (size_t nmemb, size_t size, char *file, int line) char *xstrdup_f (const char *s, char *file, int line) { - char *p = xmalloc (strlen(s)+1); + char *p = (char *)xmalloc (strlen(s)+1); #if TRACE_XMALLOC logf (LOG_DEBUG, "%s:%d: xstrdup(s=%d) %p", file, line, strlen(s)+1, p); #endif