aboutsummaryrefslogtreecommitdiff
path: root/src/sfrecord.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-10-06 13:00:36 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-10-06 13:00:36 +0000
commit3cc2fdca7973bcfe004c86fc827a2bdc5ad8e11f (patch)
treeb06e3e2ef351dc668e723b32aede3e083c5a1c19 /src/sfrecord.c
parent9f880fa1eca65ed6b1e30624a97f543f2bcfb4a1 (diff)
use z_wrappers around sys_open/close()
svn path=/trunk/externals/zexy/; revision=17573
Diffstat (limited to 'src/sfrecord.c')
-rw-r--r--src/sfrecord.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sfrecord.c b/src/sfrecord.c
index f215621..0256281 100644
--- a/src/sfrecord.c
+++ b/src/sfrecord.c
@@ -152,10 +152,10 @@ static void sfrecord_open(t_sfrecord *x,t_symbol *filename,
#endif
if (x->fp != NULL) {
- fclose(x->fp); /* should not happen */
+ z_fclose(x->fp); /* should not happen */
}
- if (!(x->fp = fopen(x->filename->s_name,BINWRITEMODE))) {
+ if (!(x->fp = z_fopen(x->filename->s_name,BINWRITEMODE))) {
error("sfrecord: can't open %s", x->filename->s_name);
}
}
@@ -171,7 +171,7 @@ static void sfrecord_close(t_sfrecord *x)
/* now in state machine
if(x->fp != NULL)
{
- fclose(x->fp);
+ z_fclose(x->fp);
x->fp = NULL;
}
*/
@@ -456,7 +456,7 @@ case SFRECORD_CLOSE:
/* avoid openfiles */
if(x->fp) {
- fclose(x->fp);
+ z_fclose(x->fp);
x->fp = NULL;
};