From 49cb1d620b13388e22088c0102d2d7f472c97fff Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Tue, 12 Sep 2000 04:18:20 +0000 Subject: - Always use V_* macros even if logic seems to be only using fullpath. --- ext/swf/swf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/swf/swf.c') diff --git a/ext/swf/swf.c b/ext/swf/swf.c index 6e61fdef77..32ec0c1aaf 100644 --- a/ext/swf/swf.c +++ b/ext/swf/swf.c @@ -192,7 +192,7 @@ PHP_FUNCTION(swf_openfile) free_na = 0; RETURN_FALSE; } - unlink((const char *)na); + V_UNLINK((const char *)na); fclose(fp); free_na = 1; SWFG(use_file) = 0; @@ -238,7 +238,7 @@ PHP_FUNCTION(swf_closefile) char buf[4096]; int b; - if ((f = fopen(SWFG(tmpfile_name), "r")) == NULL) { + if ((f = V_FOPEN(SWFG(tmpfile_name), "r")) == NULL) { php_error(E_WARNING, "Cannot create temporary file for stdout support with SWF"); RETURN_NULL(); } @@ -248,7 +248,7 @@ PHP_FUNCTION(swf_closefile) fclose(f); - unlink((const char *)SWFG(tmpfile_name)); + V_UNLINK((const char *)SWFG(tmpfile_name)); } } /* }}} */ -- cgit v1.2.1