From: Perl 5 Porters Date: Wed, 3 Jul 1996 04:45:45 +0000 (+0000) Subject: Add cast to malloc to calm cc when system headers decalre int malloc() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2e5d53bf7ae9b515d0331771711135ca77774a43;p=p5sagit%2Fp5-mst-13.2.git Add cast to malloc to calm cc when system headers decalre int malloc() --- diff --git a/ext/DynaLoader/dlutils.c b/ext/DynaLoader/dlutils.c index 67dea78..07ea332 100644 --- a/ext/DynaLoader/dlutils.c +++ b/ext/DynaLoader/dlutils.c @@ -75,7 +75,7 @@ SaveError(pat, va_alist) if (LastError) LastError = (char*)saferealloc(LastError, len) ; else - LastError = safemalloc(len) ; + LastError = (char *) safemalloc(len) ; /* Copy message into LastError (including terminating null char) */ strncpy(LastError, message, len) ;