From 3cc2fdca7973bcfe004c86fc827a2bdc5ad8e11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 6 Oct 2015 13:00:36 +0000 Subject: use z_wrappers around sys_open/close() svn path=/trunk/externals/zexy/; revision=17573 --- src/sfplay.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sfplay.c') diff --git a/src/sfplay.c b/src/sfplay.c index d762a5a..a577605 100644 --- a/src/sfplay.c +++ b/src/sfplay.c @@ -184,10 +184,10 @@ static void sfplay_open(t_sfplay *x,t_symbol *filename,t_symbol *endian) #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,BINREADMODE))) { + if (!(x->fp = z_fopen(x->filename->s_name,BINREADMODE))) { error("sfplay: can't open %s", x->filename->s_name); } } @@ -203,7 +203,7 @@ static void sfplay_close(t_sfplay *x) /* now in state machine if(x->fp != NULL) { - fclose(x->fp); + z_fclose(x->fp); x->fp = NULL; } */ @@ -523,7 +523,7 @@ static t_int *sfplay_perform(t_int *w) /* avoid openfiles */ if(x->fp) { - fclose(x->fp); + z_fclose(x->fp); x->fp = NULL; }; -- cgit v1.2.1