From: Gurusamy Sarathy Date: Mon, 9 Feb 1998 00:30:35 +0000 (+0000) Subject: [win32] ansify prototype for my_safemalloc(), avoid warnings X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d665c133375efdf305833da1aceeebefc5d313d9;p=p5sagit%2Fp5-mst-13.2.git [win32] ansify prototype for my_safemalloc(), avoid warnings p4raw-id: //depot/win32/perl@489 --- diff --git a/sv.c b/sv.c index b0d81f3..9de271b 100644 --- a/sv.c +++ b/sv.c @@ -59,6 +59,10 @@ static void sv_mortalgrow _((void)); static void sv_unglob _((SV* sv)); static void sv_check_thinkfirst _((SV *sv)); +#ifndef PURIFY +static void *my_safemalloc(MEM_SIZE size); +#endif + typedef void (*SVFUNC) _((SV*)); #ifdef PURIFY @@ -576,8 +580,7 @@ more_xpv(void) # define my_safefree(s) free(s) #else static void* -my_safemalloc(size) - MEM_SIZE size; +my_safemalloc(MEM_SIZE size) { char *p; New(717, p, size, char);