Skip to content

Commit

Permalink
perl 5.003_03: mg.c
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Perl 5 Porters authored and Andy Dougherty committed Aug 19, 1996
1 parent 6b9d15c commit e6d9441
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mg.c
Expand Up @@ -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.
Expand Down Expand Up @@ -70,7 +69,7 @@ void* p;
SvFLAGS(sv) &= ~(SVf_IOK|SVf_NOK|SVf_POK);
}

safefree((void *)mgs);
Safefree(mgs);
}


Expand Down

0 comments on commit e6d9441

Please sign in to comment.