diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2015-10-06 13:00:36 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2015-10-06 13:00:36 +0000 |
commit | 3cc2fdca7973bcfe004c86fc827a2bdc5ad8e11f (patch) | |
tree | b06e3e2ef351dc668e723b32aede3e083c5a1c19 /src/sfplay.c | |
parent | 9f880fa1eca65ed6b1e30624a97f543f2bcfb4a1 (diff) |
use z_wrappers around sys_open/close()
svn path=/trunk/externals/zexy/; revision=17573
Diffstat (limited to 'src/sfplay.c')
-rw-r--r-- | src/sfplay.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; }; |