summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-08-19 00:36:12 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-08-19 00:36:12 +0000
commite6d9441ccdcf8bd3f0f10054a692c39b28cfbc5e (patch)
tree7a78dda471ba15c523f4d77dfc0d8c295473673f
parent6b9d15cba3c162e0aa500272b606d30bdf58a929 (diff)
downloadperl-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.
-rw-r--r--mg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mg.c b/mg.c
index 31c542e8da..b1d5415491 100644
--- a/mg.c
+++ b/mg.c
@@ -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);
}