diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-08-19 00:36:12 +0000 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-08-19 00:36:12 +0000 |
commit | e6d9441ccdcf8bd3f0f10054a692c39b28cfbc5e (patch) | |
tree | 7a78dda471ba15c523f4d77dfc0d8c295473673f /mg.c | |
parent | 6b9d15cba3c162e0aa500272b606d30bdf58a929 (diff) | |
download | perl-e6d9441ccdcf8bd3f0f10054a692c39b28cfbc5e.tar.gz |
perl 5.003_03: mg.c
Include <unistd.h>
Use Safefree() macro instead of safefree() function with
a (possibly) incorrect cast. The whole point of the
Safefree() macro is that it does the correct cast for you.
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -15,11 +15,10 @@ #include "EXTERN.h" #include "perl.h" -/* Omit -- it causes too much grief on mixed systems. +/* XXX If this causes problems, set i_unistd=undef in the hint file. */ #ifdef I_UNISTD # include <unistd.h> #endif -*/ /* * Use the "DESTRUCTOR" scope cleanup to reinstate magic. @@ -70,7 +69,7 @@ void* p; SvFLAGS(sv) &= ~(SVf_IOK|SVf_NOK|SVf_POK); } - safefree((void *)mgs); + Safefree(mgs); } |